From b179ecef0c3ffee650b778dc7c04657492d6b509 Mon Sep 17 00:00:00 2001 From: Henry Camacho Date: Mon, 20 Feb 2017 20:41:32 -0600 Subject: [PATCH] Various fixes - removed some debugging information/prints - expanded the BIND for 3502 (the DAPLIE WSS listener) --- rvpn/connection/connection.go | 2 -- rvpn/external/server.go | 5 ++--- rvpn/rvpnmain/run.go | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/rvpn/connection/connection.go b/rvpn/connection/connection.go index 6d05a33..f41fbdb 100755 --- a/rvpn/connection/connection.go +++ b/rvpn/connection/connection.go @@ -226,8 +226,6 @@ func (c *Connection) Writer() { if err != nil { return } - loginfo.Println(c) - loginfo.Println(w) c.Update() diff --git a/rvpn/external/server.go b/rvpn/external/server.go index 37077be..160c5b3 100644 --- a/rvpn/external/server.go +++ b/rvpn/external/server.go @@ -1,7 +1,6 @@ package external import ( - "encoding/hex" "net" "net/http" "strconv" @@ -83,8 +82,8 @@ func handleConnection(conn net.Conn, connectionTable *connection.Table) { loginfo.Println("state ", state, " ", state.Protocol) loginfo.Println("conn ", conn) loginfo.Println("byte read", cnt) - loginfo.Println("buffer") - loginfo.Println(hex.Dump(buffer[0:cnt])) + //loginfo.Println("buffer") + //loginfo.Println(hex.Dump(buffer[0:cnt])) if state.Protocol == 0 { //attempt to discover protocol diff --git a/rvpn/rvpnmain/run.go b/rvpn/rvpnmain/run.go index 90c26cc..0064e5d 100644 --- a/rvpn/rvpnmain/run.go +++ b/rvpn/rvpnmain/run.go @@ -27,7 +27,7 @@ var ( ) func init() { - flag.StringVar(&argServerBinding, "server-port", "127.0.0.1:3502", "server Bind listener") + flag.StringVar(&argServerBinding, "server-port", ":3502", "server Bind listener") flag.StringVar(&argServerAdminBinding, "admin-server-port", "127.0.0.2:8000", "admin server Bind listener") flag.StringVar(&argServerExternalBinding, "external-server-port", "127.0.0.1:8080", "external server Bind listener")