* some debugging and fixing in the proxy (still needs some work)

* added a logger and stringers for message types
This commit is contained in:
betzalel
2017-07-11 16:50:06 +03:00
parent 092f92264a
commit 18bef62b79
28 changed files with 1340 additions and 726 deletions

View File

@@ -1,10 +1,10 @@
package server
import (
"fmt"
"io"
"net/http"
"net/url"
"vncproxy/logger"
"golang.org/x/net/websocket"
)
@@ -31,7 +31,7 @@ func (wsServer *WsServer) Listen(urlStr string, handlerFunc WsHandler) {
}
url, err := url.Parse(urlStr)
if err != nil {
fmt.Println("error while parsing url: ", err)
logger.Errorf("error while parsing url: ", err)
}
// http.HandleFunc(url.Path,