mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Allow extAddress to be set from the command line
This allows relaysrv to listen on an unprivileged port, with port forwarding directing traffic from 443, thus providing an alternative to using setcap cap_net_bind_service=+ep
This commit is contained in:
parent
7775166477
commit
102027a343
@ -59,6 +59,7 @@ func main() {
|
|||||||
flag.StringVar(&statusAddr, "status-srv", ":22070", "Listen address for status service (blank to disable)")
|
flag.StringVar(&statusAddr, "status-srv", ":22070", "Listen address for status service (blank to disable)")
|
||||||
flag.StringVar(&poolAddrs, "pools", defaultPoolAddrs, "Comma separated list of relay pool addresses to join")
|
flag.StringVar(&poolAddrs, "pools", defaultPoolAddrs, "Comma separated list of relay pool addresses to join")
|
||||||
flag.StringVar(&providedBy, "provided-by", "", "An optional description about who provides the relay")
|
flag.StringVar(&providedBy, "provided-by", "", "An optional description about who provides the relay")
|
||||||
|
flag.StringVar(&extAddress, "ext-address", "", "An optional address to advertising as being available on.\n\tAllows listening on an unprivileged port with port forwarding from e.g. 443, and be connected to on port 443.")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user