mirror of
https://github.com/fosrl/newt.git
synced 2026-02-07 21:46:39 +00:00
Use the right time
This commit is contained in:
6
main.go
6
main.go
@@ -506,7 +506,7 @@ func runNewtMain(ctx context.Context) {
|
||||
id, // CLI arg takes precedence
|
||||
secret, // CLI arg takes precedence
|
||||
endpoint,
|
||||
30, // 30 seconds
|
||||
30*time.Second, // 30 seconds
|
||||
pingTimeout,
|
||||
opt,
|
||||
)
|
||||
@@ -694,8 +694,8 @@ func runNewtMain(ctx context.Context) {
|
||||
|
||||
relayPort := wgData.RelayPort
|
||||
if relayPort == 0 {
|
||||
relayPort = 21820
|
||||
}
|
||||
relayPort = 21820
|
||||
}
|
||||
|
||||
clientsHandleNewtConnection(wgData.PublicKey, endpoint, relayPort)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user