-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬇️ Concurrently pull from all upstreams (#24)
- Loading branch information
1 parent
5096557
commit 494c281
Showing
8 changed files
with
81 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import ( | |
) | ||
|
||
type Upstream interface { | ||
GetName() string | ||
GetServers() (servers []Server, err error) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,46 @@ | ||
{ | ||
"groups": [ | ||
{ | ||
"name": "Group A", | ||
"port": 1090, | ||
"servers": [ | ||
{ | ||
"name": "Server A0", | ||
"target": "45.10.10.10:8081", | ||
"method": "chacha20-ietf-poly1305", | ||
"password": "mypassword" | ||
}, | ||
{ | ||
"name": "Server A1", | ||
"target": "jp.myss.cloudflare.com:18080", | ||
"method": "aes-128-gcm", | ||
"password": "hereismypasswrod" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Group B", | ||
"port": 1091, | ||
"servers": [ | ||
{ | ||
"name": "Server B0", | ||
"target": "45.10.10.11:8088", | ||
"method": "chacha20-ietf-poly1305", | ||
"password": "mypassword" | ||
}, | ||
{ | ||
"name": "Server B1", | ||
"target": "45.10.10.12:18088", | ||
"method": "chacha20-ietf-poly1305", | ||
"password": "mypassword2" | ||
}, | ||
{ | ||
"name": "Server B2", | ||
"target": "jp.myss.cloudflare.com:18080", | ||
"method": "aes-128-gcm", | ||
"password": "hereismypasswrod" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ import ( | |
"log" | ||
) | ||
|
||
|
||
func ReloadConfig() { | ||
log.Println("Reloading configuration") | ||
mPortDispatcher.Lock() | ||
|