beta1.2 Dual relay.

This commit is contained in:
2026-06-22 13:39:22 +08:00
parent e570b7b92e
commit 1a6df73d3c
6 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -21,10 +21,10 @@ type Miner struct{}
// - accesstoken: 网络密钥
//
// 示例:./easytier-core.exe --network-name mynet --network-secret key --peers tcp://host:11010 -d
func (*Miner) BuildTaskCommand(wholenode string, netname string, accesstoken string) string {
func (*Miner) BuildTaskCommand(wholenode string, backupnode string , netname string, accesstoken string) string {
cmd := fmt.Sprintf(
"./easytier-core.exe --network-name %s --network-secret %s --peers %s -d",
netname, accesstoken, wholenode,
"./easytier-core.exe --network-name %s --network-secret %s --peers %s %s -d",
netname, accesstoken, wholenode, backupnode,
)
log.Info().
Str("node", wholenode).