about summary refs log tree commit diff
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-09-08 02:03:10 +0200
committermaride <maride@darknebu.la>2018-09-08 02:03:10 +0200
commit1384b2ef7864ec85d94f4616b1c42339a7286333 (patch)
tree8c7063c9bfb8e29ba650c89394205d153a8c97ff
parent9ee92da5e3d52fe11415193a9391eee3ad541c72 (diff)
Fix: map the correct port
-rw-r--r--src/access.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/access.go b/src/access.go
index 1292489..69c8fb1 100644
--- a/src/access.go
+++ b/src/access.go
@@ -86,7 +86,7 @@ func startVPN() (err error) {
 			"1194/udp": []nat.PortBinding{
 				{
 					HostIP: "0.0.0.0",
-					HostPort: "1194",
+					HostPort: fmt.Sprintf("%d", *remotePort),
 				},
 			},
 		},