Use the right time

This commit is contained in:
Owen
2026-01-16 15:18:52 -08:00
parent 2eff7e9df4
commit b6b4689e5b

View File

@@ -506,7 +506,7 @@ func runNewtMain(ctx context.Context) {
id, // CLI arg takes precedence id, // CLI arg takes precedence
secret, // CLI arg takes precedence secret, // CLI arg takes precedence
endpoint, endpoint,
30, // 30 seconds 30*time.Second, // 30 seconds
pingTimeout, pingTimeout,
opt, opt,
) )
@@ -694,8 +694,8 @@ func runNewtMain(ctx context.Context) {
relayPort := wgData.RelayPort relayPort := wgData.RelayPort
if relayPort == 0 { if relayPort == 0 {
relayPort = 21820 relayPort = 21820
} }
clientsHandleNewtConnection(wgData.PublicKey, endpoint, relayPort) clientsHandleNewtConnection(wgData.PublicKey, endpoint, relayPort)