Skip to content

Commit

Permalink
adjust default udp keepalive to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 10, 2024
1 parent 6f82371 commit e26c85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/grasshopper/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ func init() {
rootCmd.PersistentFlags().StringVar(&config.KO, "ko", "it's a secret", "The secret to encrypt and decrypt for the next hop(outgoing)")
rootCmd.PersistentFlags().StringVar(&config.CI, "ci", "3des", "The crytpgraphy method for incoming data, available: aes, aes-128, aes-192, salsa20, blowfish, twofish, cast5, 3des, tea, xtea, sm4, none")
rootCmd.PersistentFlags().StringVar(&config.CO, "co", "3des", "The crytpgraphy method for outgoing data, available: aes, aes-128, aes-192, salsa20, blowfish, twofish, cast5, 3des, tea, xtea, sm4, none")
rootCmd.PersistentFlags().DurationVar(&config.Timeout, "timeout", 600*time.Second, "set how long an UDP connection can live when in idle(in seconds)")
rootCmd.PersistentFlags().DurationVar(&config.Timeout, "timeout", 60*time.Second, "set how long an UDP connection can live when in idle(in seconds)")
}

0 comments on commit e26c85e

Please sign in to comment.