mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
cmd: change default tunnel port to 5223
This is port used by Playstation, Apple, Skype and other servers. In general shall be open in the wild.
This commit is contained in:
parent
ef09e17ade
commit
ad652b3186
3 changed files with 4 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ Sample configuration that exposes:
|
|||
looks like this
|
||||
|
||||
```yaml
|
||||
server_addr: SERVER_IP:4443
|
||||
server_addr: SERVER_IP:5223
|
||||
insecure_skip_verify: true
|
||||
tunnels:
|
||||
webui:
|
||||
|
|
@ -100,7 +100,7 @@ looks like this
|
|||
|
||||
Configuration options:
|
||||
|
||||
* `server_addr`: server TCP address, i.e. `54.12.12.45:4443`
|
||||
* `server_addr`: server TCP address, i.e. `54.12.12.45:5223`
|
||||
* `insecure_skip_verify`: controls whether a client verifies the server's certificate chain and host name, if using self signed certificates must be set to `true`, *default:* `false`
|
||||
* `tls_crt`: path to client TLS certificate, *default:* `client.crt` *in the config file directory*
|
||||
* `tls_key`: path to client TLS certificate key, *default:* `client.key` *in the config file directory*
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Examples:
|
|||
tunnel start-all
|
||||
|
||||
config.yaml:
|
||||
server_addr: SERVER_IP:4443
|
||||
server_addr: SERVER_IP:5223
|
||||
insecure_skip_verify: true
|
||||
tunnels:
|
||||
webui:
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ type options struct {
|
|||
func parseArgs() *options {
|
||||
httpAddr := flag.String("httpAddr", ":80", "Public address for HTTP connections, empty string to disable")
|
||||
httpsAddr := flag.String("httpsAddr", ":443", "Public address listening for HTTPS connections, emptry string to disable")
|
||||
tunnelAddr := flag.String("tunnelAddr", ":4443", "Public address listening for tunnel client")
|
||||
tunnelAddr := flag.String("tunnelAddr", ":5223", "Public address listening for tunnel client")
|
||||
tlsCrt := flag.String("tlsCrt", "server.crt", "Path to a TLS certificate file")
|
||||
tlsKey := flag.String("tlsKey", "server.key", "Path to a TLS key file")
|
||||
clients := flag.String("clients", "", "Comma-separated list of tunnel client ids")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue