about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-09 12:20:54 +0200
committerEmile <hanemile@protonmail.com>2019-10-09 12:20:54 +0200
commit011819157bb484ee5c41cea2b96f32ced62cc58d (patch)
tree98391d684c1045e3ec67d154082c9b7438748c1d /src
parentfb16e34c1f1740c75f45dfb52e6d4d799f7e6682 (diff)
reading the vpnRemoteAddress from the HOSTNAME env var
Diffstat (limited to 'src')
-rw-r--r--src/docker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docker.go b/src/docker.go
index 5cc1411..b5398d8 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -46,7 +46,7 @@ func spawnCompanion(username string, accesscode string) {
 	setupDockerCLI()
 
 	sessionSalt := generateSessionSalt()
-	vpnRemoteAddress := "127.0.0.1"
+	vpnRemoteAddress := os.Getenv("HOSTNAME")
 
 	// get the vpnRemoteport and increment it
 	vpnRemotePort := currentVpnRemptePort