Skip to content

Commit 9383127

Browse files
author
Lukasz Zajaczkowski
committed
Code refactor. Utils moved to main vpn package
1 parent c39d1c6 commit 9383127

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"os"
2424
"runtime"
2525

26-
. "github.com/zreigz/ws-vpn/utils"
26+
. "github.com/zreigz/ws-vpn/vpn/utils"
2727
client "github.com/zreigz/ws-vpn/vpn"
2828
server "github.com/zreigz/ws-vpn/vpn"
2929
)

vpn/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/songgao/water"
2323
"net"
2424

25-
. "github.com/zreigz/ws-vpn/utils"
25+
. "github.com/zreigz/ws-vpn/vpn/utils"
2626
"net/url"
2727
"os"
2828
"os/signal"

vpn/init.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
package vpn
1919

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

2222
var logger = loging.GetLogger()
2323

@@ -33,6 +33,4 @@ const (
3333
STATE_CONNECT = 1
3434

3535
STATE_CONNECTED = 2
36-
37-
STATE_DISCONNECT = 3
3836
)

vpn/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"net"
2323

2424
"github.com/songgao/water"
25-
. "github.com/zreigz/ws-vpn/utils"
25+
. "github.com/zreigz/ws-vpn/vpn/utils"
2626

2727
"fmt"
2828
"net/http"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)