solar3s / goregen

golang client for regenbox
GNU General Public License v3.0
9 stars 10 forks source link

websocket ip from config to web client #15

Open rkjdid opened 7 years ago

rkjdid commented 7 years ago

right now the listenaddr specified in the config is passed to the html template, which is in turn used by the web-client for opening the websocket connection.

This is not needed, the client can simply re-use window.location.href instead which is simpler and also allows for ListenAddr to be set to 0.0.0.0 (which right now breaks the websocket)

thanks @krossov for reporting