diff --git a/scripts/wsserver.sh b/scripts/wsserver.sh new file mode 100644 index 0000000..c957771 --- /dev/null +++ b/scripts/wsserver.sh @@ -0,0 +1,5 @@ +#!bin/bash + +sudo killall vtun +sudo ./bin/vtun -S -l=:3001 -c=172.16.0.1/24 -p=ws & +echo "started!" diff --git a/server/wsserver.go b/server/wsserver.go index 074ad95..04c45ac 100644 --- a/server/wsserver.go +++ b/server/wsserver.go @@ -55,7 +55,7 @@ func StartWSServer(config config.Config) { io.WriteString(w, resp) }) - http.ListenAndServe(config.ServerAddr, nil) + http.ListenAndServe(config.LocalAddr, nil) } func tunToWs(iface *water.Interface, c *cache.Cache) {