@@ -12,7 +12,7 @@ import (
1212)
1313
1414// Version of hookah API.
15- const Version = "2.0 .0"
15+ const Version = "2.1 .0"
1616
1717// API is an instance of the Hookah API.
1818type API struct {
@@ -86,11 +86,14 @@ func (a *API) registerProtocols() {
8686 a .RegisterProtocol ("stdout" , "stdout" , protocols .Stdout )
8787 a .RegisterProtocol ("tcp" , "tcp://address" , protocols .TCP )
8888 a .RegisterProtocol ("tcp-listen" , "tcp-listen://address" , protocols .TCPListen )
89+ a .RegisterProtocol ("tls" , "tls://address?cert=path&insecure=false" , protocols .TLS )
90+ a .RegisterProtocol ("tls-listen" , "tls-listen://address?cert=path&key=path" , protocols .TLSListen )
8991 a .RegisterProtocol ("unix" , "unix://path/to/sock" , protocols .Unix )
9092 a .RegisterProtocol ("unix-listen" , "unix-listen://path/to/sock" , protocols .UnixListen )
9193 a .RegisterProtocol ("ws" , "ws://address" , protocols .WS )
9294 a .RegisterProtocol ("wss" , "wss://address" , protocols .WSS )
9395 a .RegisterProtocol ("ws-listen" , "ws-listen://address" , protocols .WSListen )
96+ a .RegisterProtocol ("wss-listen" , "wss-listen://address?cert=path&key=path" , protocols .WSSListen )
9497}
9598
9699func parseOptions (op string ) (string , string ) {
0 commit comments