Skip to content

Commit

Permalink
Merge pull request #760 from fatedier/vendor
Browse files Browse the repository at this point in the history
move some packages to golib (https://github.com/fatedier/golib)
  • Loading branch information
fatedier authored May 11, 2018
2 parents 58a54bd + d9aadab commit 97db0d1
Show file tree
Hide file tree
Showing 1,251 changed files with 4,221 additions and 316,616 deletions.
173 changes: 173 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/armon/go-socks5"
revision = "e75332964ef517daa070d7c38a9466a0d687e0a5"

[[constraint]]
name = "github.com/fatedier/beego"
revision = "6c6a4f5bd5eb5a39f7e289b8f345b55f75e7e3e8"

[[constraint]]
name = "github.com/fatedier/golib"
branch = "master"

[[constraint]]
branch = "frp"
name = "github.com/fatedier/kcp-go"

[[constraint]]
name = "github.com/gorilla/websocket"
version = "1.2.0"

[[constraint]]
name = "github.com/hashicorp/yamux"
revision = "2658be15c5f05e76244154714161f17e3e77de2e"

[[constraint]]
name = "github.com/rakyll/statik"
version = "0.1.0"

[[constraint]]
name = "github.com/rodaine/table"
version = "1.0.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.2"

[[constraint]]
name = "github.com/vaughan0/go-ini"
revision = "a98ad7ee00ec53921f08832bc06ecf7fd600e6a1"

[prune]
go-tests = true
unused-packages = true
7 changes: 5 additions & 2 deletions client/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ import (
"io"
"io/ioutil"
"runtime"
"runtime/debug"
"sync"
"time"

"github.com/fatedier/frp/g"
"github.com/fatedier/frp/models/config"
"github.com/fatedier/frp/models/msg"
"github.com/fatedier/frp/utils/crypto"
"github.com/fatedier/frp/utils/log"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/frp/utils/shutdown"
"github.com/fatedier/frp/utils/util"
"github.com/fatedier/frp/utils/version"

"github.com/fatedier/golib/control/shutdown"
"github.com/fatedier/golib/crypto"
fmux "github.com/hashicorp/yamux"
)

Expand Down Expand Up @@ -271,6 +272,7 @@ func (ctl *Control) reader() {
defer func() {
if err := recover(); err != nil {
ctl.Error("panic error: %v", err)
ctl.Error(string(debug.Stack()))
}
}()
defer ctl.readerShutdown.Done()
Expand Down Expand Up @@ -319,6 +321,7 @@ func (ctl *Control) msgHandler() {
defer func() {
if err := recover(); err != nil {
ctl.Error("panic error: %v", err)
ctl.Error(string(debug.Stack()))
}
}()
defer ctl.msgHandlerShutdown.Done()
Expand Down
7 changes: 4 additions & 3 deletions client/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ import (
"github.com/fatedier/frp/models/msg"
"github.com/fatedier/frp/models/plugin"
"github.com/fatedier/frp/models/proto/udp"
"github.com/fatedier/frp/utils/errors"
frpIo "github.com/fatedier/frp/utils/io"
"github.com/fatedier/frp/utils/log"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/frp/utils/pool"

"github.com/fatedier/golib/errors"
frpIo "github.com/fatedier/golib/io"
"github.com/fatedier/golib/pool"
)

// Proxy defines how to deal with work connections for different proxy type.
Expand Down
3 changes: 2 additions & 1 deletion client/proxy_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

"github.com/fatedier/frp/models/config"
"github.com/fatedier/frp/models/msg"
"github.com/fatedier/frp/utils/errors"
"github.com/fatedier/frp/utils/log"
frpNet "github.com/fatedier/frp/utils/net"

"github.com/fatedier/golib/errors"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions client/visitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ import (
"github.com/fatedier/frp/g"
"github.com/fatedier/frp/models/config"
"github.com/fatedier/frp/models/msg"
frpIo "github.com/fatedier/frp/utils/io"
"github.com/fatedier/frp/utils/log"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/frp/utils/pool"
"github.com/fatedier/frp/utils/util"

frpIo "github.com/fatedier/golib/io"
"github.com/fatedier/golib/pool"
)

// Visitor is used for forward traffics from local port tot remote service.
Expand Down
4 changes: 4 additions & 0 deletions cmd/frpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ package main

import (
"github.com/fatedier/frp/cmd/frpc/sub"

"github.com/fatedier/golib/crypto"
)

func main() {
crypto.DefaultSalt = "frp"

sub.Execute()
}
6 changes: 6 additions & 0 deletions cmd/frps/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

package main

import (
"github.com/fatedier/golib/crypto"
)

func main() {
crypto.DefaultSalt = "frp"

Execute()
}
Loading

0 comments on commit 97db0d1

Please sign in to comment.