add sni protocol keyword

This commit is contained in:
rui.zheng 2017-08-17 11:03:16 +08:00
parent 71c2ca98eb
commit 0ebce7e731

View File

@ -191,7 +191,7 @@ func initChain() (*gost.Chain, error) {
connector = gost.SSHDirectForwardConnector() connector = gost.SSHDirectForwardConnector()
case "remote": case "remote":
connector = gost.SSHRemoteForwardConnector() connector = gost.SSHRemoteForwardConnector()
case "forward": case "forward", "sni": // sni is an alias of forward
connector = gost.ForwardConnector() connector = gost.ForwardConnector()
case "http": case "http":
fallthrough fallthrough