Skip to content

Commit

Permalink
Code refactor. Utils moved to main vpn package
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Zajaczkowski committed Jan 13, 2017
1 parent c39d1c6 commit 9383127
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os"
"runtime"

. "github.com/zreigz/ws-vpn/utils"
. "github.com/zreigz/ws-vpn/vpn/utils"
client "github.com/zreigz/ws-vpn/vpn"
server "github.com/zreigz/ws-vpn/vpn"
)
Expand Down
2 changes: 1 addition & 1 deletion vpn/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/songgao/water"
"net"

. "github.com/zreigz/ws-vpn/utils"
. "github.com/zreigz/ws-vpn/vpn/utils"
"net/url"
"os"
"os/signal"
Expand Down
4 changes: 1 addition & 3 deletions vpn/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
package vpn

import loging "github.com/zreigz/ws-vpn/utils"
import loging "github.com/zreigz/ws-vpn/vpn/utils"

var logger = loging.GetLogger()

Expand All @@ -33,6 +33,4 @@ const (
STATE_CONNECT = 1

STATE_CONNECTED = 2

STATE_DISCONNECT = 3
)
2 changes: 1 addition & 1 deletion vpn/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"net"

"github.com/songgao/water"
. "github.com/zreigz/ws-vpn/utils"
. "github.com/zreigz/ws-vpn/vpn/utils"

"fmt"
"net/http"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 9383127

Please sign in to comment.