1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-06 22:05:27 -04:00

update version: auto replacement to v5 path

This commit is contained in:
Shelikhoo
2022-01-02 15:16:23 +00:00
parent 9f0d7e7f40
commit 3ef7feaeaf
809 changed files with 2669 additions and 2641 deletions

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/v2fly/v2ray-core/v4/common/net"
"github.com/v2fly/v2ray-core/v5/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/v2fly/v2ray-core/v4/common"
"github.com/v2fly/v2ray-core/v4/common/net"
. "github.com/v2fly/v2ray-core/v4/common/protocol/http"
"github.com/v2fly/v2ray-core/v5/common"
"github.com/v2fly/v2ray-core/v5/common/net"
. "github.com/v2fly/v2ray-core/v5/common/protocol/http"
)
func TestParseXForwardedFor(t *testing.T) {

View File

@@ -5,8 +5,8 @@ import (
"errors"
"strings"
"github.com/v2fly/v2ray-core/v4/common"
"github.com/v2fly/v2ray-core/v4/common/net"
"github.com/v2fly/v2ray-core/v5/common"
"github.com/v2fly/v2ray-core/v5/common/net"
)
type version byte

View File

@@ -3,7 +3,7 @@ package http_test
import (
"testing"
. "github.com/v2fly/v2ray-core/v4/common/protocol/http"
. "github.com/v2fly/v2ray-core/v5/common/protocol/http"
)
func TestHTTPHeaders(t *testing.T) {