|
|
@@ -115,6 +115,11 @@ var (
|
|
115
|
115
|
Envar("MTG_MULTIPLEX_PERCONNECTION").
|
|
116
|
116
|
Default("50").
|
|
117
|
117
|
Uint()
|
|
|
118
|
+ runNTPServers = runCommand.Flag("ntp-server",
|
|
|
119
|
+ "A list of NTP servers to use.").
|
|
|
120
|
+ Envar("MTG_NTP_SERVERS").
|
|
|
121
|
+ Default("0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org", "3.pool.ntp.org").
|
|
|
122
|
+ Strings()
|
|
118
|
123
|
runSecret = runCommand.Arg("secret", "Secret of this proxy.").Required().HexBytes()
|
|
119
|
124
|
runAdtag = runCommand.Arg("adtag", "ADTag of the proxy.").HexBytes()
|
|
120
|
125
|
)
|
|
|
@@ -149,6 +154,7 @@ func main() {
|
|
149
|
154
|
config.Opt{Option: config.OptionTypeCloakPort, Value: *runTLSCloakPort},
|
|
150
|
155
|
config.Opt{Option: config.OptionTypeAntiReplayMaxSize, Value: *runAntiReplayMaxSize},
|
|
151
|
156
|
config.Opt{Option: config.OptionTypeMultiplexPerConnection, Value: *runMultiplexPerConnection},
|
|
|
157
|
+ config.Opt{Option: config.OptionTypeNTPServers, Value: *runNTPServers},
|
|
152
|
158
|
config.Opt{Option: config.OptionTypeSecret, Value: *runSecret},
|
|
153
|
159
|
config.Opt{Option: config.OptionTypeAdtag, Value: *runAdtag},
|
|
154
|
160
|
)
|