main: add ports for tun2

This commit is contained in:
Cadey Ratio 2017-03-26 12:55:10 -07:00
parent 5fd805b5dd
commit d65737df24
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ var (
webPort = flag.String("web-port", "9234", "HTTP ingress port for backends and users")
sslPort = flag.String("ssl-port", "", "if set use this port for SSL HTTP requests (certs via LE, you agree to follow their TOS)")
domainSuffix = flag.String("domain-suffix", ".apps.xeserv.us", "Domain name suffix associated with the load balancer")
backendPort = flag.String("backend-port", "36971", "Port for TCP/TLS backends")
backendKCPPort = flag.String("backend-kcp-port", "23154", "Port for KCP/TLS backends")
sslCertKey = flag.String("ssl-cert-key", "", "if set encrypt SSL certs with this key")
)
@ -50,6 +52,8 @@ func main() {
SSLPort: *sslPort,
DomainSuffix: *domainSuffix,
CertKey: certKey,
BackendPort: ":" + *backendPort,
KCPPort: ":" + *backendKCPPort,
})
if err != nil {
log.Fatal(err)