|
@@ -71,11 +71,13 @@ var (
|
|
skipHelloVerify = flag.Bool("skip-hello-verify", false, "(server only) skip hello verify request. Useful to workaround DPI")
|
|
skipHelloVerify = flag.Bool("skip-hello-verify", false, "(server only) skip hello verify request. Useful to workaround DPI")
|
|
ciphersuites = cipherlistArg{}
|
|
ciphersuites = cipherlistArg{}
|
|
curves = curvelistArg{}
|
|
curves = curvelistArg{}
|
|
|
|
+ staleMode = util.EitherStale
|
|
)
|
|
)
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
flag.Var(&ciphersuites, "ciphers", "colon-separated list of ciphers to use")
|
|
flag.Var(&ciphersuites, "ciphers", "colon-separated list of ciphers to use")
|
|
flag.Var(&curves, "curves", "colon-separated list of curves to use")
|
|
flag.Var(&curves, "curves", "colon-separated list of curves to use")
|
|
|
|
+ flag.Var(&staleMode, "stale-mode", "which stale side of connection makes whole session stale")
|
|
}
|
|
}
|
|
|
|
|
|
func usage() {
|
|
func usage() {
|
|
@@ -136,6 +138,7 @@ func cmdClient(bindAddress, remoteAddress string) int {
|
|
MTU: *mtu,
|
|
MTU: *mtu,
|
|
CipherSuites: ciphersuites.Value,
|
|
CipherSuites: ciphersuites.Value,
|
|
EllipticCurves: curves.Value,
|
|
EllipticCurves: curves.Value,
|
|
|
|
+ StaleMode: staleMode,
|
|
}
|
|
}
|
|
|
|
|
|
clt, err := client.New(&cfg)
|
|
clt, err := client.New(&cfg)
|
|
@@ -172,6 +175,7 @@ func cmdServer(bindAddress, remoteAddress string) int {
|
|
SkipHelloVerify: *skipHelloVerify,
|
|
SkipHelloVerify: *skipHelloVerify,
|
|
CipherSuites: ciphersuites.Value,
|
|
CipherSuites: ciphersuites.Value,
|
|
EllipticCurves: curves.Value,
|
|
EllipticCurves: curves.Value,
|
|
|
|
+ StaleMode: staleMode,
|
|
}
|
|
}
|
|
|
|
|
|
srv, err := server.New(&cfg)
|
|
srv, err := server.New(&cfg)
|