This commit is contained in:
Alex Tsai 2021-04-27 16:46:30 +08:00
parent f0f60ef070
commit d1f510e9e8
2 changed files with 6 additions and 1 deletions

5
scripts/wsserver.sh Normal file
View File

@ -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!"

View File

@ -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) {