Skip to content

Commit 7ab9d2e

Browse files
committed
chore: update us1 server default key
1 parent 30102a2 commit 7ab9d2e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ time="2023-04-26T21:49:33+08:00" level=info msg="initializing acl file acl.json"
2323
"keys": [
2424
{
2525
"name": "default",
26-
"key": "5868a941-3025-4c6d-ad3a-41e29bb42e5f"
26+
"key": "5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc"
2727
}
2828
]
2929
}
3030
time="2023-04-26T21:49:33+08:00" level=info msg="acl: load 1 keys"
31-
time="2023-04-26T21:49:33+08:00" level=info msg="server listen on localhost:9986 now"
31+
time="2023-04-26T21:49:33+08:00" level=info msg="server listen on 127.0.0.1:9986 now"
3232
```
3333
> the `key` here will using by `pf` and `s5` commands
3434
@@ -61,11 +61,12 @@ server {
6161
### Port forward tool `pf` act as ToH client
6262
- SSH over HTTP
6363
```
64-
$ ssh -o ProxyCommand="./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5868a941-3025-4c6d-ad3a-41e29bb42e5f -f tcp/%h:%p" root@127.0.0.1
64+
$ # get a chatgpt robot
65+
$ ssh -o ProxyCommand="./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc -f tcp/%h:%p" chat@127.0.0.1
6566
```
6667
- Common use case
6768
```sh
68-
$ ./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5868a941-3025-4c6d-ad3a-41e29bb42e5f -f udp/127.0.0.53:53/8.8.8.8:53 -f tcp/0.0.0.0:1080/google.com:80
69+
$ ./toh pf -s https://fill-in-your-server-here.toh.sh/ws -k 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc -f udp/127.0.0.53:53/8.8.8.8:53 -f tcp/0.0.0.0:1080/google.com:80
6970
time="2023-04-28T13:52:31+08:00" level=info msg="listen on 127.0.0.53:53 for udp://8.8.8.8:53 now"
7071
time="2023-04-28T13:52:31+08:00" level=info msg="listen on 0.0.0.0:1080 for tcp://google.com:80 now"
7172

@@ -86,15 +87,13 @@ The document has moved
8687
```sh
8788
$ ./toh s5
8889
time="2023-05-12T15:02:11Z" level=info msg="initializing config file /root/.config/toh/socks5.yml"
89-
geoip2: country.mmdb
9090
listen: localhost:2080
9191
servers:
9292
- name: us1
9393
api: https://fill-in-your-server-here.toh.sh/ws
94-
key: 5868a941-3025-4c6d-ad3a-41e29bb42e5f
94+
key: 5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc
9595
ruleset:
9696
- https://raw.githubusercontent.com/rkonfj/toh/main/ruleset.txt
97-
healthcheck: https://www.google.com/generate_204
9897
time="2023-05-12T15:02:11Z" level=info msg="downloading https://raw.githubusercontent.com/rkonfj/toh/main/ruleset.txt"
9998
time="2023-05-12T15:02:14Z" level=info msg="ruleset us1: special 0, direct 0, wildcard 21"
10099
time="2023-05-12T15:02:14Z" level=info msg="total loaded 1 proxy servers and 0 groups"
@@ -107,6 +106,7 @@ $ https_proxy=socks5://127.0.0.1:2080 curl https://api64.ipify.org
107106
$ # wow, great! the `104.207.152.45` is your proxy ip
108107
```
109108
- full configuration can be viewed [here](https://github.com/rkonfj/toh/blob/main/cmd/s5/server/config.go)
109+
- socks5 support `CONNECT` and `UDP ASSOCIATE`
110110
- the server `us1` is the test server, will stopped in the future
111111

112112
### Android project `tohdroid` act as ToH client

client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
func main() {
1919
c, err := client.NewTohClient(client.Options{
2020
Server: "wss://fill-in-your-server-here.toh.sh/ws",
21-
Key: "5868a941-3025-4c6d-ad3a-41e29bb42e5f",
21+
Key: "5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc",
2222
})
2323
if err != nil {
2424
panic(err)
@@ -54,7 +54,7 @@ import (
5454
func main() {
5555
c, err := client.NewTohClient(client.Options{
5656
Server: "https://fill-in-your-server-here.toh.sh",
57-
Key: "5868a941-3025-4c6d-ad3a-41e29bb42e5f",
57+
Key: "5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc",
5858
})
5959
if err != nil {
6060
panic(err)

cmd/s5/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func defaultOptions() *server.Config {
132132
Servers: []*server.TohServer{{
133133
Name: "us1",
134134
Addr: "https://fill-in-your-server-here.toh.sh/ws",
135-
Key: "5868a941-3025-4c6d-ad3a-41e29bb42e5f",
135+
Key: "5CCQAoN905PdIejsal55Am3z2mXY6ueLrtdSA8OCpVc",
136136
Ruleset: []string{"https://raw.githubusercontent.com/rkonfj/toh/main/ruleset.txt"},
137137
}},
138138
}

0 commit comments

Comments
 (0)