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