mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
all: modify import path, change version to v0.8.0
This commit is contained in:
parent
9c0ca8675d
commit
d4ecc2218d
6
Makefile
6
Makefile
@ -1,5 +1,5 @@
|
|||||||
export PATH := $(GOPATH)/bin:$(PATH)
|
export PATH := $(GOPATH)/bin:$(PATH)
|
||||||
export GOPATH := $(shell pwd)/Godeps/_workspace:$(shell pwd):$(GOPATH)
|
export GOPATH := $(shell pwd)/Godeps/_workspace:$(GOPATH)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
@ -14,11 +14,11 @@ fmt:
|
|||||||
@go fmt ./test/func_test.go
|
@go fmt ./test/func_test.go
|
||||||
|
|
||||||
frps:
|
frps:
|
||||||
go build -o bin/frps ./src/frp/cmd/frps
|
go build -o bin/frps ./src/cmd/frps
|
||||||
cp -rf ./assets ./bin
|
cp -rf ./assets ./bin
|
||||||
|
|
||||||
frpc:
|
frpc:
|
||||||
go build -o bin/frpc ./src/frp/cmd/frpc
|
go build -o bin/frpc ./src/cmd/frpc
|
||||||
|
|
||||||
echo_server:
|
echo_server:
|
||||||
go build -o test/bin/echo_server ./test/echo_server.go
|
go build -o test/bin/echo_server ./test/echo_server.go
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export PATH := $(GOPATH)/bin:$(PATH)
|
export PATH := $(GOPATH)/bin:$(PATH)
|
||||||
export OLDGOPATH := $(GOPATH)
|
export OLDGOPATH := $(GOPATH)
|
||||||
export GOPATH := $(shell pwd)/Godeps/_workspace:$(shell pwd):$(GOPATH)
|
export GOPATH := $(shell pwd)/Godeps/_workspace:$(GOPATH)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
@ -21,12 +21,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/models/client"
|
"github.com/fatedier/frp/src/models/client"
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
"frp/models/msg"
|
"github.com/fatedier/frp/src/models/msg"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/pcrypto"
|
"github.com/fatedier/frp/src/utils/pcrypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ControlProcess(cli *client.ProxyClient, wait *sync.WaitGroup) {
|
func ControlProcess(cli *client.ProxyClient, wait *sync.WaitGroup) {
|
@ -23,9 +23,9 @@ import (
|
|||||||
|
|
||||||
docopt "github.com/docopt/docopt-go"
|
docopt "github.com/docopt/docopt-go"
|
||||||
|
|
||||||
"frp/models/client"
|
"github.com/fatedier/frp/src/models/client"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/version"
|
"github.com/fatedier/frp/src/utils/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
@ -20,12 +20,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
"frp/models/msg"
|
"github.com/fatedier/frp/src/models/msg"
|
||||||
"frp/models/server"
|
"github.com/fatedier/frp/src/models/server"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/pcrypto"
|
"github.com/fatedier/frp/src/utils/pcrypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ProcessControlConn(l *conn.Listener) {
|
func ProcessControlConn(l *conn.Listener) {
|
@ -26,11 +26,11 @@ import (
|
|||||||
|
|
||||||
docopt "github.com/docopt/docopt-go"
|
docopt "github.com/docopt/docopt-go"
|
||||||
|
|
||||||
"frp/models/server"
|
"github.com/fatedier/frp/src/models/server"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/version"
|
"github.com/fatedier/frp/src/utils/version"
|
||||||
"frp/utils/vhost"
|
"github.com/fatedier/frp/src/utils/vhost"
|
||||||
)
|
)
|
||||||
|
|
||||||
var usage string = `frps is the server of frp
|
var usage string = `frps is the server of frp
|
@ -19,12 +19,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/models/config"
|
"github.com/fatedier/frp/src/models/config"
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
"frp/models/msg"
|
"github.com/fatedier/frp/src/models/msg"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/pcrypto"
|
"github.com/fatedier/frp/src/utils/pcrypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProxyClient struct {
|
type ProxyClient struct {
|
@ -19,7 +19,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
@ -21,12 +21,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"frp/models/config"
|
"github.com/fatedier/frp/src/models/config"
|
||||||
"frp/models/metric"
|
"github.com/fatedier/frp/src/models/metric"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/pcrypto"
|
"github.com/fatedier/frp/src/utils/pcrypto"
|
||||||
"frp/utils/pool"
|
"github.com/fatedier/frp/src/utils/pool"
|
||||||
)
|
)
|
||||||
|
|
||||||
// will block until connection close
|
// will block until connection close
|
@ -22,10 +22,10 @@ import (
|
|||||||
|
|
||||||
ini "github.com/vaughan0/go-ini"
|
ini "github.com/vaughan0/go-ini"
|
||||||
|
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
"frp/models/metric"
|
"github.com/fatedier/frp/src/models/metric"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
"frp/utils/vhost"
|
"github.com/fatedier/frp/src/utils/vhost"
|
||||||
)
|
)
|
||||||
|
|
||||||
// common config
|
// common config
|
@ -19,8 +19,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"frp/models/metric"
|
"github.com/fatedier/frp/src/models/metric"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GeneralResponse struct {
|
type GeneralResponse struct {
|
@ -19,8 +19,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"frp/models/metric"
|
"github.com/fatedier/frp/src/models/metric"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func viewDashboard(w http.ResponseWriter, r *http.Request) {
|
func viewDashboard(w http.ResponseWriter, r *http.Request) {
|
@ -19,12 +19,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/models/config"
|
"github.com/fatedier/frp/src/models/config"
|
||||||
"frp/models/consts"
|
"github.com/fatedier/frp/src/models/consts"
|
||||||
"frp/models/metric"
|
"github.com/fatedier/frp/src/models/metric"
|
||||||
"frp/models/msg"
|
"github.com/fatedier/frp/src/models/msg"
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/log"
|
"github.com/fatedier/frp/src/utils/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Listener interface {
|
type Listener interface {
|
@ -19,7 +19,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string = "0.7.0"
|
var version string = "0.8.0"
|
||||||
|
|
||||||
func Full() string {
|
func Full() string {
|
||||||
return version
|
return version
|
@ -25,8 +25,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/pool"
|
"github.com/fatedier/frp/src/utils/pool"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HttpMuxer struct {
|
type HttpMuxer struct {
|
@ -21,8 +21,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
"frp/utils/pool"
|
"github.com/fatedier/frp/src/utils/pool"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
@ -23,7 +23,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
)
|
)
|
||||||
|
|
||||||
type muxFunc func(*conn.Conn) (net.Conn, string, error)
|
type muxFunc func(*conn.Conn) (net.Conn, string, error)
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"frp/utils/conn"
|
"github.com/fatedier/frp/src/utils/conn"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user