diff --git a/cmd/vppn/main.go b/cmd/vppn/main.go index ca28299..bd16125 100644 --- a/cmd/vppn/main.go +++ b/cmd/vppn/main.go @@ -22,6 +22,8 @@ func main() { os.Exit(1) } + // TODO: Acquire flock on lock file. + statePath := networkStatePath(*name) state, err := peer.LoadOrInit(statePath, *hub, *apiKey) diff --git a/hub/templates/network/network-view.html b/hub/templates/network/network-view.html index 1dc453d..dc3f22a 100644 --- a/hub/templates/network/network-view.html +++ b/hub/templates/network/network-view.html @@ -22,10 +22,9 @@ PeerIP Name - Public IP 1 - Port 1 - Public IP 2 - Port 2 + IPv4 + IPv6 + Port Relay @@ -38,10 +37,9 @@ {{.Name}} - {{ipToString .PublicIP1}} - {{.Port1}} - {{ipToString .PublicIP2}} - {{.Port2}} + {{ipToString .Addr4}} + {{ipToString .Addr6}} + {{.Port}} {{if .Relay}}T{{else}}F{{end}} diff --git a/hub/templates/network/peer-create.html b/hub/templates/network/peer-create.html index ed6dd1b..303cb6e 100644 --- a/hub/templates/network/peer-create.html +++ b/hub/templates/network/peer-create.html @@ -12,20 +12,16 @@

-
- +
+

-
- +
+

-
- -

-

-
- +
+

-
- +
+

-
- +
+

-
- -

-

-
- +
+