Skip to content

Commit

Permalink
misc: rename project to warp-plus
Browse files Browse the repository at this point in the history
Also mark termux script as broken until it's fixed.

Signed-off-by: Mark Pashmfouroush <[email protected]>
  • Loading branch information
markpash committed Mar 14, 2024
1 parent 8bcd11f commit 8d8e5bf
Show file tree
Hide file tree
Showing 53 changed files with 108 additions and 114 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
wireguard-go
warp-plus
warp-plus.exe
.idea
stuff/
40 changes: 7 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Warp-Plus-Go
# Warp-Plus

Warp-Plus-Go is an open-source implementation of Cloudflare's Warp, enhanced with Psiphon integration for circumventing censorship. This project aims to provide a robust and cross-platform VPN solution that can use psiphon on top of warp and warp-in-warp for changing the user virtual nat location.
Warp-Plus is an open-source implementation of Cloudflare's Warp, enhanced with Psiphon integration for circumventing censorship. This project aims to provide a robust and cross-platform VPN solution that can use psiphon on top of warp and warp-in-warp for changing the user virtual nat location.

## Features

Expand All @@ -15,15 +15,15 @@ Warp-Plus-Go is an open-source implementation of Cloudflare's Warp, enhanced wit

### Prerequisites

- You can download prebuilt binaries or compile it with Go (You MUST use go 1.20)
- You can download prebuilt binaries or compile it with Go (You MUST use go 1.21)
- Basic understanding of VPN and proxy configurations

### Installation

1. Clone the repository:
```bash
git clone https://github.com/bepass-org/wireguard-go.git
cd warp-plus-go
git clone https://github.com/bepass-org/warp-plus.git
cd warp-plus
```

2. Build the project:
Expand All @@ -36,7 +36,7 @@ Warp-Plus-Go is an open-source implementation of Cloudflare's Warp, enhanced wit
Run the application with the following command:

```bash
./warp-plus-go [-v] [-b addr:port] [-c config-file-path] [-e warp-ip] [-k license-key] [-country country-code] [-cfon] [-gool]
./warp-plus [-v] [-b addr:port] [-c config-file-path] [-e warp-ip] [-k license-key] [-country country-code] [-cfon] [-gool]
```

- `-v`: Enable verbose logging.
Expand Down Expand Up @@ -82,7 +82,7 @@ Run the application with the following command:
- Ukraine (UA)
- United States (US)

### Termux
### Termux (BROKEN)

```
bash <(curl -fsSL https://raw.githubusercontent.com/Ptechgithub/wireguard-go/master/termux.sh)
Expand All @@ -99,34 +99,8 @@ bash <(curl -fsSL https://raw.githubusercontent.com/Ptechgithub/wireguard-go/mas
- برای اسکن ای پی سالم وارپ از دستور `warp -scan` استفاده کنید.
- برای ترکیب (chain) دو کانفیگ برای تغییر لوکیشن از دستور `warp -gool` استفاده کنید.
## Contributing
Contributions to Warp-Plus-Go are welcome. Please read our [contributing guidelines](CONTRIBUTING.md) for more information.
## Acknowledgements
- Cloudflare Warp
- Psiphon
- All contributors and supporters of this project
## License
Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"path/filepath"
"time"

"github.com/bepass-org/wireguard-go/psiphon"
"github.com/bepass-org/wireguard-go/warp"
"github.com/bepass-org/wireguard-go/wiresocks"
"github.com/bepass-org/warp-plus/psiphon"
"github.com/bepass-org/warp-plus/warp"
"github.com/bepass-org/warp-plus/wiresocks"
)

const singleMTU = 1400
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bepass-org/wireguard-go
module github.com/bepass-org/warp-plus

go 1.21.1

Expand Down
2 changes: 1 addition & 1 deletion ipscanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ IPScanner is a Go package designed for scanning and analyzing IP addresses. It u
To use IPScanner, simply import the package and initialize a new scanner with your desired options.

```go
import "github.com/bepass-org/wireguard-go/ipscanner"
import "github.com/bepass-org/warp-plus/ipscanner"

func main() {
scanner := ipscanner.NewScanner(
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/example/cfscanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"

"github.com/bepass-org/wireguard-go/ipscanner"
"github.com/bepass-org/warp-plus/ipscanner"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions ipscanner/example/warpscanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"time"

"github.com/bepass-org/wireguard-go/ipscanner"
"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/wireguard-go/warp"
"github.com/bepass-org/warp-plus/ipscanner"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/warp"
"github.com/fatih/color"
"github.com/rodaine/table"
)
Expand Down
6 changes: 3 additions & 3 deletions ipscanner/internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/iterator"
"github.com/bepass-org/wireguard-go/ipscanner/internal/ping"
"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/iterator"
"github.com/bepass-org/warp-plus/ipscanner/internal/ping"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type Engine struct {
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/engine/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type IPQueue struct {
Expand Down
4 changes: 2 additions & 2 deletions ipscanner/internal/iterator/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net"
"net/netip"

"github.com/bepass-org/wireguard-go/ipscanner/internal/cache"
"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/cache"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

// LCG represents a linear congruential generator with full period.
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/ping/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type HttpPingResult struct {
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/netip"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type Ping struct {
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/ping/quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"

"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/http3"
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/ping/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type TcpPingResult struct {
Expand Down
2 changes: 1 addition & 1 deletion ipscanner/internal/ping/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type TlsPingResult struct {
Expand Down
4 changes: 2 additions & 2 deletions ipscanner/internal/ping/warp.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/wireguard-go/warp"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/warp"
"github.com/flynn/noise"
"golang.org/x/crypto/blake2s"
"golang.org/x/crypto/curve25519"
Expand Down
4 changes: 2 additions & 2 deletions ipscanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/ipscanner/internal/engine"
"github.com/bepass-org/wireguard-go/ipscanner/internal/statute"
"github.com/bepass-org/warp-plus/ipscanner/internal/engine"
"github.com/bepass-org/warp-plus/ipscanner/internal/statute"
)

type IPScanner struct {
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"syscall"
"time"

"github.com/bepass-org/wireguard-go/app"
"github.com/bepass-org/wireguard-go/warp"
"github.com/bepass-org/warp-plus/app"
"github.com/bepass-org/warp-plus/warp"

"github.com/peterbourgon/ff/v4"
"github.com/peterbourgon/ff/v4/ffhelp"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion warp/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/netip"
"time"

"github.com/bepass-org/wireguard-go/iputils"
"github.com/bepass-org/warp-plus/iputils"
)

func WarpPrefixes() []netip.Prefix {
Expand Down
2 changes: 1 addition & 1 deletion warp/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"net/netip"

"github.com/bepass-org/wireguard-go/iputils"
"github.com/bepass-org/warp-plus/iputils"

tls "github.com/refraction-networking/utls"
)
Expand Down
19 changes: 19 additions & 0 deletions wireguard/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion wireguard/conn/bind_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"golang.org/x/sys/windows"

"github.com/bepass-org/wireguard-go/wireguard/conn/winrio"
"github.com/bepass-org/warp-plus/wireguard/conn/winrio"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion wireguard/conn/bindtest/bindtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"net/netip"
"os"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/conn"
)

type ChannelBind struct {
Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package device
import (
"errors"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/conn"
)

type DummyDatagram struct {
Expand Down
8 changes: 4 additions & 4 deletions wireguard/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync/atomic"
"time"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/wireguard-go/wireguard/ratelimiter"
"github.com/bepass-org/wireguard-go/wireguard/rwcancel"
"github.com/bepass-org/wireguard-go/wireguard/tun"
"github.com/bepass-org/warp-plus/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/ratelimiter"
"github.com/bepass-org/warp-plus/wireguard/rwcancel"
"github.com/bepass-org/warp-plus/wireguard/tun"
)

type Device struct {
Expand Down
8 changes: 4 additions & 4 deletions wireguard/device/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"testing"
"time"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/wireguard-go/wireguard/conn/bindtest"
"github.com/bepass-org/wireguard-go/wireguard/tun"
"github.com/bepass-org/wireguard-go/wireguard/tun/tuntest"
"github.com/bepass-org/warp-plus/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/conn/bindtest"
"github.com/bepass-org/warp-plus/wireguard/tun"
"github.com/bepass-org/warp-plus/wireguard/tun/tuntest"
)

// uapiCfg returns a string that contains cfg formatted use with IpcSet.
Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/keypair.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync/atomic"
"time"

"github.com/bepass-org/wireguard-go/wireguard/replay"
"github.com/bepass-org/warp-plus/wireguard/replay"
)

/* Due to limitations in Go and /x/crypto there is currently
Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/noise-protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/poly1305"

"github.com/bepass-org/wireguard-go/wireguard/tai64n"
"github.com/bepass-org/warp-plus/wireguard/tai64n"
)

type handshakeState int
Expand Down
4 changes: 2 additions & 2 deletions wireguard/device/noise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"encoding/binary"
"testing"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/wireguard-go/wireguard/tun/tuntest"
"github.com/bepass-org/warp-plus/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/tun/tuntest"
)

func TestCurveWrappers(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"

"github.com/bepass-org/wireguard-go/wireguard/conn"
"github.com/bepass-org/warp-plus/wireguard/conn"
)

type Peer struct {
Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/queueconstants_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package device

import "github.com/bepass-org/wireguard-go/wireguard/conn"
import "github.com/bepass-org/warp-plus/wireguard/conn"

/* Reduce memory consumption for Android */

Expand Down
2 changes: 1 addition & 1 deletion wireguard/device/queueconstants_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

package device

import "github.com/bepass-org/wireguard-go/wireguard/conn"
import "github.com/bepass-org/warp-plus/wireguard/conn"

const (
QueueStagedSize = conn.IdealBatchSize
Expand Down
Loading

0 comments on commit 8d8e5bf

Please sign in to comment.