mirror of
https://github.com/fosrl/newt.git
synced 2026-02-08 05:56:40 +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
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user