This commit is contained in:
RPRX 2020-12-04 09:36:16 +08:00
parent ed8d6d743c
commit 16544c18ab
627 changed files with 3247 additions and 2635 deletions

View file

@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/xtls/xray-core/v1/common/net"
"github.com/xtls/xray-core/common/net"
)
// ParseXForwardedFor parses X-Forwarded-For header in http headers, and return the IP list in it.

View file

@ -8,9 +8,9 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/xtls/xray-core/v1/common"
"github.com/xtls/xray-core/v1/common/net"
. "github.com/xtls/xray-core/v1/common/protocol/http"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/net"
. "github.com/xtls/xray-core/common/protocol/http"
)
func TestParseXForwardedFor(t *testing.T) {

View file

@ -5,8 +5,8 @@ import (
"errors"
"strings"
"github.com/xtls/xray-core/v1/common"
"github.com/xtls/xray-core/v1/common/net"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/net"
)
type version byte

View file

@ -3,7 +3,7 @@ package http_test
import (
"testing"
. "github.com/xtls/xray-core/v1/common/protocol/http"
. "github.com/xtls/xray-core/common/protocol/http"
)
func TestHTTPHeaders(t *testing.T) {