Commit d8411816 authored by David Fifield's avatar David Fifield
Browse files

Include "tls=no" or "tls=yes" in the bridge descriptor.

Might make this controlled by ServerTransportOptions instead of the
--disable-tls command line option.
parent aa204af6
......@@ -259,16 +259,19 @@ func main() {
switch bindaddr.MethodName {
case ptMethodName:
var ln net.Listener
args := pt.Args{}
if disableTLS {
args.Add("tls", "no")
ln, err = startListener("tcp", bindaddr.Addr)
} else {
args.Add("tls", "yes")
ln, err = startListenerTLS("tcp", bindaddr.Addr, certFilename, keyFilename)
}
if err != nil {
pt.SmethodError(bindaddr.MethodName, err.Error())
break
}
pt.Smethod(bindaddr.MethodName, ln.Addr())
pt.SmethodArgs(bindaddr.MethodName, ln.Addr(), args)
listeners = append(listeners, ln)
default:
pt.SmethodError(bindaddr.MethodName, "no such method")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment