minor fs denesting
This commit is contained in:
parent
cf8defbe3d
commit
09d296df2a
|
@ -12,8 +12,8 @@ import (
|
|||
|
||||
"github.com/gorilla/websocket"
|
||||
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/packer"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/sni"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/packer"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/sni"
|
||||
)
|
||||
|
||||
var hostRegexp = regexp.MustCompile(`(?im)(?:^|[\r\n])Host: *([^\r\n]+)[\r\n]`)
|
|
@ -11,7 +11,7 @@ import (
|
|||
flag "github.com/spf13/pflag"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/client"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/client"
|
||||
)
|
||||
|
||||
var httpRegexp = regexp.MustCompile(`(?i)^http`)
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
lumberjack "gopkg.in/natefinch/lumberjack.v2"
|
||||
|
||||
telebit "git.coolaj86.com/coolaj86/go-telebitd"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/server"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/server"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
2
debug.sh
2
debug.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
godebug build -instrument \
|
||||
git.coolaj86.com/coolaj86/go-telebitd/rvpn/connection,git.coolaj86.com/coolaj86/go-telebitd/rvpn/connection \
|
||||
git.coolaj86.com/coolaj86/go-telebitd/connection,git.coolaj86.com/coolaj86/go-telebitd/connection \
|
||||
-o debug .
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
|
||||
telebit "git.coolaj86.com/coolaj86/go-telebitd"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/envelope"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/envelope"
|
||||
)
|
||||
|
||||
const (
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/gorilla/websocket"
|
||||
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/packer"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/packer"
|
||||
)
|
||||
|
||||
// Connection track websocket and faciliates in and out data
|
|
@ -18,8 +18,8 @@ import (
|
|||
"github.com/gorilla/websocket"
|
||||
|
||||
telebit "git.coolaj86.com/coolaj86/go-telebitd"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/packer"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/rvpn/sni"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/packer"
|
||||
"git.coolaj86.com/coolaj86/go-telebitd/sni"
|
||||
)
|
||||
|
||||
type contextKey string
|
Loading…
Reference in New Issue