Skip to content

Commit 807e41e

Browse files
committed
Rename mohanson to libraries
1 parent 68d61a4 commit 807e41e

File tree

16 files changed

+25
-25
lines changed

16 files changed

+25
-25
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Daze is a software that helps you pass through firewalls, in other words, a prox
44

55
## Introduction
66

7-
Daze is designed as a single-file application. First, compile or [download](https://github.com/mohanson/daze/releases) daze:
7+
Daze is designed as a single-file application. First, compile or [download](https://github.com/libraries/daze/releases) daze:
88

99
```sh
10-
$ git clone https://github.com/mohanson/daze
10+
$ git clone https://github.com/libraries/daze
1111
$ cd daze
1212

1313
# On Linux or macOS
@@ -43,7 +43,7 @@ Daze is still under development. You should make sure that the server and client
4343

4444
Daze is implemented in pure Go language, so it can run on almost any operating system. The following are some of the browsers/operating systems commonly used by me:
4545

46-
0. Android. Cross-compile daze for android: `GOOS=android GOARCH=arm64 go build -o daze github.com/mohanson/daze/cmd/daze`. Push the compiled file to the phone, You can use [adb](https://developer.android.com/studio/command-line/adb) or create an http server and download daze with `wget` in [termux](https://play.google.com/store/apps/details?id=com.termux&hl=en). Run `daze client -l 127.0.0.1:1080 ...` in the termux. Set the proxy for phone: WLAN -> Settings -> Proxy -> Fill in `127.0.0.1:1080`
46+
0. Android. Cross-compile daze for android: `GOOS=android GOARCH=arm64 go build -o daze github.com/libraries/daze/cmd/daze`. Push the compiled file to the phone, You can use [adb](https://developer.android.com/studio/command-line/adb) or create an http server and download daze with `wget` in [termux](https://play.google.com/store/apps/details?id=com.termux&hl=en). Run `daze client -l 127.0.0.1:1080 ...` in the termux. Set the proxy for phone: WLAN -> Settings -> Proxy -> Fill in `127.0.0.1:1080`
4747
0. Chrome. Chrome does not support setting proxies, so a third-party plugin must be used. [Proxy SwitchyOmega](https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en) works very well.
4848
0. Firefox can configure a proxy in `Connection Settings` -> `Manual proxy configuration` -> `SOCKSv5 Host=127.0.0.1` and `Port=1080`. If you see an option `Use remote DNS` on the page, check it.
4949

cmd/daze/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import (
1414
"strings"
1515
"time"
1616

17+
"github.com/libraries/daze"
18+
"github.com/libraries/daze/protocol/ashe"
19+
"github.com/libraries/daze/protocol/baboon"
20+
"github.com/libraries/daze/protocol/czar"
21+
"github.com/libraries/daze/protocol/dahlia"
1722
"github.com/libraries/go/doa"
1823
"github.com/libraries/go/gracefulexit"
1924
"github.com/libraries/go/rate"
20-
"github.com/mohanson/daze"
21-
"github.com/mohanson/daze/protocol/ashe"
22-
"github.com/mohanson/daze/protocol/baboon"
23-
"github.com/mohanson/daze/protocol/czar"
24-
"github.com/mohanson/daze/protocol/dahlia"
2525
)
2626

2727
// Conf is acting as package level configuration.

cmd/develop.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ if (!(Test-Path bin/rule.ls)) {
1010
Copy-Item res/rule.ls -Destination bin/rule.ls
1111
}
1212

13-
& go build -o bin github.com/mohanson/daze/cmd/daze
13+
& go build -o bin github.com/libraries/daze/cmd/daze

cmd/develop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ if [ ! -f bin/rule.ls ]; then
1212
cp res/rule.ls bin/rule.ls
1313
fi
1414

15-
go build -o bin github.com/mohanson/daze/cmd/daze
15+
go build -o bin github.com/libraries/daze/cmd/daze

cmd/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ make() {
88
cp README.md bin/release/daze_$1_$2/README.md
99
cp res/rule.cidr bin/release/daze_$1_$2/rule.cidr
1010
cp res/rule.ls bin/release/daze_$1_$2/rule.ls
11-
GOOS=$1 GOARCH=$2 go build -o bin/release/daze_$1_$2 github.com/mohanson/daze/cmd/daze
11+
GOOS=$1 GOARCH=$2 go build -o bin/release/daze_$1_$2 github.com/libraries/daze/cmd/daze
1212
python -m zipfile -c bin/release/daze_$1_$2.zip bin/release/daze_$1_$2
1313
}
1414

daze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ func Gravity(conn io.ReadWriteCloser, k []byte) io.ReadWriteCloser {
11161116
//
11171117
// Examples:
11181118
// OpenFile("/etc/hosts")
1119-
// OpenFile("https://raw.githubusercontent.com/mohanson/daze/master/README.md")
1119+
// OpenFile("https://raw.githubusercontent.com/libraries/daze/master/README.md")
11201120
func OpenFile(name string) (io.ReadCloser, error) {
11211121
if strings.HasPrefix(name, "http://") || strings.HasPrefix(name, "https://") {
11221122
resp, err := http.Get(name)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/mohanson/daze
1+
module github.com/libraries/daze
22

33
go 1.25.0
44

protocol/ashe/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"net"
1111
"time"
1212

13+
"github.com/libraries/daze"
1314
"github.com/libraries/go/doa"
1415
"github.com/libraries/go/rate"
15-
"github.com/mohanson/daze"
1616
)
1717

1818
// This document describes a tcp-based cryptographic proxy protocol. The main purpose of this protocol is to bypass

protocol/ashe/engine_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"math/rand/v2"
77
"testing"
88

9+
"github.com/libraries/daze"
910
"github.com/libraries/go/doa"
10-
"github.com/mohanson/daze"
1111
)
1212

1313
const (

protocol/baboon/engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"sync/atomic"
1313
"time"
1414

15+
"github.com/libraries/daze"
16+
"github.com/libraries/daze/protocol/ashe"
1517
"github.com/libraries/go/doa"
1618
"github.com/libraries/go/rate"
17-
"github.com/mohanson/daze"
18-
"github.com/mohanson/daze/protocol/ashe"
1919
)
2020

2121
// Protocol baboon is the ashe protocol based on http.

0 commit comments

Comments
 (0)