Browse Source

unified import path

v2ray 9 years ago
parent
commit
07a86f549b
100 changed files with 255 additions and 253 deletions
  1. 4 2
      .travis.yml
  2. 2 2
      .vscode/tasks.json
  3. 4 4
      README.md
  4. 1 1
      app/api/api.go
  5. 1 1
      app/api/config.go
  6. 3 3
      app/dispatcher/dispatcher.go
  7. 8 8
      app/dispatcher/impl/default.go
  8. 3 3
      app/dispatcher/testing/dispatcher.go
  9. 1 1
      app/dns/config.go
  10. 1 1
      app/dns/config_json.go
  11. 3 3
      app/dns/config_json_test.go
  12. 1 1
      app/dns/dns.go
  13. 7 7
      app/dns/nameserver.go
  14. 3 3
      app/dns/server.go
  15. 10 10
      app/dns/server_test.go
  16. 2 2
      app/proxyman/proxyman.go
  17. 1 1
      app/router/config_cache.go
  18. 1 1
      app/router/config_json.go
  19. 4 4
      app/router/router.go
  20. 2 2
      app/router/rules/chinaip_gen.go
  21. 1 1
      app/router/rules/chinaip_init.go
  22. 1 1
      app/router/rules/chinaip_json.go
  23. 2 2
      app/router/rules/chinaip_json_test.go
  24. 3 3
      app/router/rules/chinaip_test.go
  25. 1 1
      app/router/rules/chinasites_json.go
  26. 2 2
      app/router/rules/chinasites_json_test.go
  27. 3 3
      app/router/rules/chinasites_test.go
  28. 1 1
      app/router/rules/condition.go
  29. 1 1
      app/router/rules/config.go
  30. 4 4
      app/router/rules/config_json.go
  31. 3 3
      app/router/rules/config_json_test.go
  32. 5 5
      app/router/rules/router.go
  33. 9 9
      app/router/rules/router_test.go
  34. 1 1
      app/space.go
  35. 1 1
      common/alloc/buffer.go
  36. 2 2
      common/alloc/buffer_test.go
  37. 2 2
      common/collect/string_list_json_test.go
  38. 1 1
      common/crypto/benchmark_test.go
  39. 1 1
      common/crypto/chacha20.go
  40. 2 2
      common/crypto/chacha20_test.go
  41. 1 1
      common/crypto/io.go
  42. 1 1
      common/io/buffered_reader.go
  43. 3 3
      common/io/buffered_reader_test.go
  44. 1 1
      common/io/buffered_writer.go
  45. 3 3
      common/io/buffered_writer_test.go
  46. 1 1
      common/io/chain_writer.go
  47. 1 1
      common/io/chan_reader.go
  48. 2 2
      common/io/reader.go
  49. 3 3
      common/io/reader_test.go
  50. 1 1
      common/io/transport.go
  51. 2 2
      common/io/writer.go
  52. 3 3
      common/io/writer_test.go
  53. 2 2
      common/loader/json_conf.go
  54. 1 1
      common/loader/loader.go
  55. 1 1
      common/log/access.go
  56. 2 2
      common/log/internal/log_entry.go
  57. 2 2
      common/log/internal/log_entry_test.go
  58. 2 2
      common/log/internal/log_writer.go
  59. 1 1
      common/log/log.go
  60. 2 2
      common/net/address.go
  61. 2 2
      common/net/address_json_test.go
  62. 2 2
      common/net/address_test.go
  63. 2 2
      common/net/destination_test.go
  64. 2 2
      common/net/ipnet_test.go
  65. 1 1
      common/net/network.go
  66. 1 1
      common/net/network_json.go
  67. 2 2
      common/net/network_json_test.go
  68. 1 1
      common/net/port.go
  69. 1 1
      common/net/port_json.go
  70. 2 2
      common/net/port_json_test.go
  71. 2 2
      common/net/port_test.go
  72. 2 2
      common/net/timed_io_test.go
  73. 2 2
      common/protocol/headers.go
  74. 2 2
      common/protocol/headers_test.go
  75. 1 1
      common/protocol/id.go
  76. 4 4
      common/protocol/id_test.go
  77. 3 3
      common/protocol/server_picker_test.go
  78. 2 2
      common/protocol/server_spec.go
  79. 3 3
      common/protocol/server_spec_test.go
  80. 2 2
      common/protocol/time.go
  81. 2 2
      common/protocol/time_test.go
  82. 2 2
      common/protocol/user_json_test.go
  83. 1 1
      common/protocol/user_validator.go
  84. 2 2
      common/retry/retry_test.go
  85. 2 2
      common/uuid/uuid_test.go
  86. 1 1
      common/web/service.go
  87. 1 1
      core.go
  88. 7 7
      proxy/blackhole/blackhole.go
  89. 2 2
      proxy/blackhole/config.go
  90. 2 2
      proxy/blackhole/config_json.go
  91. 2 2
      proxy/blackhole/config_json_test.go
  92. 4 4
      proxy/blackhole/config_test.go
  93. 1 1
      proxy/dokodemo/config.go
  94. 2 2
      proxy/dokodemo/config_json.go
  95. 10 10
      proxy/dokodemo/dokodemo.go
  96. 13 13
      proxy/dokodemo/dokodemo_test.go
  97. 3 3
      proxy/dokodemo/sockopt_linux.go
  98. 2 2
      proxy/dokodemo/sockopt_other.go
  99. 1 1
      proxy/freedom/config_json.go
  100. 13 13
      proxy/freedom/freedom.go

+ 4 - 2
.travis.yml

@@ -3,12 +3,14 @@ language: go
 go:
   - 1.7
 
+go_import_path: v2ray.com/core
+
 git:
   depth: 5
   
 script:
-  - go test -tags json github.com/v2ray/v2ray-core/...
-  
+  - go test -tags json v2ray.com/core/...
+
 after_success:
   - ./testing/coverage/coverall
 

+ 2 - 2
.vscode/tasks.json

@@ -6,7 +6,7 @@
   "tasks": [
     {
       "taskName": "build",
-      "args": ["-tags", "json", "github.com/v2ray/v2ray-core/..."],
+      "args": ["-tags", "json", "v2ray.com/core/..."],
       "isBuildCommand": true,
       "problemMatcher": {
         "owner": "go",
@@ -21,7 +21,7 @@
     },
     {
       "taskName": "test",
-      "args": ["-tags", "json", "github.com/v2ray/v2ray-core/..."],
+      "args": ["-tags", "json", "v2ray.com/core/..."],
       "isBuildCommand": false
     }
   ]

+ 4 - 4
README.md

@@ -5,10 +5,10 @@
 [2]: https://travis-ci.org/v2ray/v2ray-core "Travis-CI Build Status"
 [3]: https://codecov.io/github/v2ray/v2ray-core/coverage.svg?branch=master "Coverage badge"
 [4]: https://codecov.io/github/v2ray/v2ray-core?branch=master "Codecov Status"
-[5]: https://goreportcard.com/badge/github.com/v2ray/v2ray-core "Go Report badge"
-[6]: https://goreportcard.com/report/github.com/v2ray/v2ray-core "Go Report"
-[7]: https://godoc.org/github.com/v2ray/v2ray-core?status.svg "GoDoc badge"
-[8]: https://godoc.org/github.com/v2ray/v2ray-core "GoDoc"
+[5]: https://goreportcard.com/badge/v2ray.com/core "Go Report badge"
+[6]: https://goreportcard.com/report/v2ray.com/core "Go Report"
+[7]: https://godoc.org/v2ray.com/core?status.svg "GoDoc badge"
+[8]: https://godoc.org/v2ray.com/core "GoDoc"
 [9]: https://codebeat.co/badges/f2354ca8-3e24-463d-a2e3-159af73b2477 "Codebeat badge"
 [10]: https://codebeat.co/projects/github-com-v2ray-v2ray-core "Codebeat"
 

+ 1 - 1
app/api/api.go

@@ -1,7 +1,7 @@
 package api
 
 import (
-	"github.com/v2ray/v2ray-core/app"
+	"v2ray.com/core/app"
 )
 
 const (

+ 1 - 1
app/api/config.go

@@ -1,7 +1,7 @@
 package api
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 type Config struct {

+ 3 - 3
app/dispatcher/dispatcher.go

@@ -1,9 +1,9 @@
 package dispatcher
 
 import (
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/transport/ray"
+	"v2ray.com/core/app"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/transport/ray"
 )
 
 const (

+ 8 - 8
app/dispatcher/impl/default.go

@@ -1,14 +1,14 @@
 package impl
 
 import (
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/proxyman"
-	"github.com/v2ray/v2ray-core/app/router"
-	"github.com/v2ray/v2ray-core/common/alloc"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/transport/ray"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/proxyman"
+	"v2ray.com/core/app/router"
+	"v2ray.com/core/common/alloc"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/transport/ray"
 )
 
 type DefaultDispatcher struct {

+ 3 - 3
app/dispatcher/testing/dispatcher.go

@@ -1,9 +1,9 @@
 package testing
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/transport/ray"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/transport/ray"
 )
 
 type TestPacketDispatcher struct {

+ 1 - 1
app/dns/config.go

@@ -3,7 +3,7 @@ package dns
 import (
 	"net"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 type Config struct {

+ 1 - 1
app/dns/config_json.go

@@ -7,7 +7,7 @@ import (
 	"errors"
 	"net"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 func (this *Config) UnmarshalJSON(data []byte) error {

+ 3 - 3
app/dns/config_json_test.go

@@ -6,9 +6,9 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/dns"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/dns"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestConfigParsing(t *testing.T) {

+ 1 - 1
app/dns/dns.go

@@ -3,7 +3,7 @@ package dns
 import (
 	"net"
 
-	"github.com/v2ray/v2ray-core/app"
+	"v2ray.com/core/app"
 )
 
 const (

+ 7 - 7
app/dns/nameserver.go

@@ -5,13 +5,13 @@ import (
 	"sync"
 	"time"
 
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	"github.com/v2ray/v2ray-core/common/alloc"
-	"github.com/v2ray/v2ray-core/common/dice"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/transport/internet/udp"
+	"v2ray.com/core/app/dispatcher"
+	"v2ray.com/core/common/alloc"
+	"v2ray.com/core/common/dice"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/transport/internet/udp"
 
 	"github.com/miekg/dns"
 )

+ 3 - 3
app/dns/server.go

@@ -5,9 +5,9 @@ import (
 	"sync"
 	"time"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dispatcher"
+	"v2ray.com/core/common/log"
 
 	"github.com/miekg/dns"
 )

+ 10 - 10
app/dns/server_test.go

@@ -4,16 +4,16 @@ import (
 	"net"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	dispatchers "github.com/v2ray/v2ray-core/app/dispatcher/impl"
-	. "github.com/v2ray/v2ray-core/app/dns"
-	"github.com/v2ray/v2ray-core/app/proxyman"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/proxy/freedom"
-	"github.com/v2ray/v2ray-core/testing/assert"
-	"github.com/v2ray/v2ray-core/transport/internet"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dispatcher"
+	dispatchers "v2ray.com/core/app/dispatcher/impl"
+	. "v2ray.com/core/app/dns"
+	"v2ray.com/core/app/proxyman"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/proxy/freedom"
+	"v2ray.com/core/testing/assert"
+	"v2ray.com/core/transport/internet"
 )
 
 func TestDnsAdd(t *testing.T) {

+ 2 - 2
app/proxyman/proxyman.go

@@ -3,8 +3,8 @@ package proxyman
 import (
 	"sync"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/proxy"
+	"v2ray.com/core/app"
+	"v2ray.com/core/proxy"
 )
 
 const (

+ 1 - 1
app/router/config_cache.go

@@ -1,7 +1,7 @@
 package router
 
 import (
-	"github.com/v2ray/v2ray-core/common"
+	"v2ray.com/core/common"
 )
 
 type ConfigObjectCreator func([]byte) (interface{}, error)

+ 1 - 1
app/router/config_json.go

@@ -5,7 +5,7 @@ package router
 import (
 	"encoding/json"
 
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common/log"
 )
 
 func (this *Config) UnmarshalJSON(data []byte) error {

+ 4 - 4
app/router/router.go

@@ -1,10 +1,10 @@
 package router
 
 import (
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/common"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	"v2ray.com/core/app"
+	"v2ray.com/core/common"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
 )
 
 const (

+ 2 - 2
app/router/rules/chinaip_gen.go

@@ -13,7 +13,7 @@ import (
 	"strconv"
 	"strings"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 const (
@@ -65,7 +65,7 @@ func main() {
 
 	fmt.Fprintln(file, "package rules")
 	fmt.Fprintln(file, "import (")
-	fmt.Fprintln(file, "v2net \"github.com/v2ray/v2ray-core/common/net\"")
+	fmt.Fprintln(file, "v2net \"v2ray.com/core/common/net\"")
 	fmt.Fprintln(file, ")")
 
 	fmt.Fprintln(file, "var (")

+ 1 - 1
app/router/rules/chinaip_init.go

@@ -1,7 +1,7 @@
 package rules
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 var (

+ 1 - 1
app/router/rules/chinaip_json.go

@@ -5,7 +5,7 @@ package rules
 import (
 	"encoding/json"
 
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common/log"
 )
 
 func parseChinaIPRule(data []byte) (*Rule, error) {

+ 2 - 2
app/router/rules/chinaip_json_test.go

@@ -5,8 +5,8 @@ package rules_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/router/rules"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestChinaIPJson(t *testing.T) {

+ 3 - 3
app/router/rules/chinaip_test.go

@@ -4,9 +4,9 @@ import (
 	"net"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/router/rules"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func makeDestination(ip string) v2net.Destination {

+ 1 - 1
app/router/rules/chinasites_json.go

@@ -4,7 +4,7 @@ package rules
 
 import (
 	"encoding/json"
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common/log"
 )
 
 func parseChinaSitesRule(data []byte) (*Rule, error) {

+ 2 - 2
app/router/rules/chinasites_json_test.go

@@ -5,8 +5,8 @@ package rules_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/router/rules"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestChinaSitesJson(t *testing.T) {

+ 3 - 3
app/router/rules/chinasites_test.go

@@ -3,9 +3,9 @@ package rules_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/router/rules"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func makeDomainDestination(domain string) v2net.Destination {

+ 1 - 1
app/router/rules/condition.go

@@ -5,7 +5,7 @@ import (
 	"regexp"
 	"strings"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 type Condition interface {

+ 1 - 1
app/router/rules/config.go

@@ -1,7 +1,7 @@
 package rules
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 type Rule struct {

+ 4 - 4
app/router/rules/config_json.go

@@ -7,10 +7,10 @@ import (
 	"errors"
 	"strings"
 
-	router "github.com/v2ray/v2ray-core/app/router"
-	"github.com/v2ray/v2ray-core/common/collect"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	router "v2ray.com/core/app/router"
+	"v2ray.com/core/common/collect"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
 )
 
 type JsonRule struct {

+ 3 - 3
app/router/rules/config_json_test.go

@@ -5,9 +5,9 @@ package rules_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/app/router/rules"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestDomainRule(t *testing.T) {

+ 5 - 5
app/router/rules/router.go

@@ -3,11 +3,11 @@ package rules
 import (
 	"errors"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dns"
-	"github.com/v2ray/v2ray-core/app/router"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dns"
+	"v2ray.com/core/app/router"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
 )
 
 var (

+ 9 - 9
app/router/rules/router_test.go

@@ -3,15 +3,15 @@ package rules_test
 import (
 	"testing"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	dispatchers "github.com/v2ray/v2ray-core/app/dispatcher/impl"
-	"github.com/v2ray/v2ray-core/app/dns"
-	"github.com/v2ray/v2ray-core/app/proxyman"
-	"github.com/v2ray/v2ray-core/app/router"
-	. "github.com/v2ray/v2ray-core/app/router/rules"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dispatcher"
+	dispatchers "v2ray.com/core/app/dispatcher/impl"
+	"v2ray.com/core/app/dns"
+	"v2ray.com/core/app/proxyman"
+	"v2ray.com/core/app/router"
+	. "v2ray.com/core/app/router/rules"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestSimpleRouter(t *testing.T) {

+ 1 - 1
app/space.go

@@ -3,7 +3,7 @@ package app
 import (
 	"errors"
 
-	"github.com/v2ray/v2ray-core/common"
+	"v2ray.com/core/common"
 )
 
 var (

+ 1 - 1
common/alloc/buffer.go

@@ -5,7 +5,7 @@ import (
 	"hash"
 	"io"
 
-	"github.com/v2ray/v2ray-core/common/serial"
+	"v2ray.com/core/common/serial"
 )
 
 const (

+ 2 - 2
common/alloc/buffer_test.go

@@ -3,8 +3,8 @@ package alloc_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/alloc"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/alloc"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestBufferClear(t *testing.T) {

+ 2 - 2
common/collect/string_list_json_test.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/collect"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/collect"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestStringListUnmarshalError(t *testing.T) {

+ 1 - 1
common/crypto/benchmark_test.go

@@ -4,7 +4,7 @@ import (
 	"crypto/cipher"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/crypto"
+	. "v2ray.com/core/common/crypto"
 )
 
 const benchSize = 1024 * 1024

+ 1 - 1
common/crypto/chacha20.go

@@ -3,7 +3,7 @@ package crypto
 import (
 	"crypto/cipher"
 
-	"github.com/v2ray/v2ray-core/common/crypto/internal"
+	"v2ray.com/core/common/crypto/internal"
 )
 
 // NewChaCha20Stream creates a new Chacha20 encryption/descryption stream based on give key and IV.

+ 2 - 2
common/crypto/chacha20_test.go

@@ -5,8 +5,8 @@ import (
 	"encoding/hex"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/crypto"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/crypto"
+	"v2ray.com/core/testing/assert"
 )
 
 func mustDecodeHex(s string) []byte {

+ 1 - 1
common/crypto/io.go

@@ -4,7 +4,7 @@ import (
 	"crypto/cipher"
 	"io"
 
-	"github.com/v2ray/v2ray-core/common"
+	"v2ray.com/core/common"
 )
 
 type CryptionReader struct {

+ 1 - 1
common/io/buffered_reader.go

@@ -4,7 +4,7 @@ import (
 	"io"
 	"sync"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common/alloc"
 )
 
 type BufferedReader struct {

+ 3 - 3
common/io/buffered_reader_test.go

@@ -3,9 +3,9 @@ package io_test
 import (
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
-	. "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/alloc"
+	. "v2ray.com/core/common/io"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestBufferedReader(t *testing.T) {

+ 1 - 1
common/io/buffered_writer.go

@@ -4,7 +4,7 @@ import (
 	"io"
 	"sync"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common/alloc"
 )
 
 type BufferedWriter struct {

+ 3 - 3
common/io/buffered_writer_test.go

@@ -3,9 +3,9 @@ package io_test
 import (
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
-	. "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/alloc"
+	. "v2ray.com/core/common/io"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestBufferedWriter(t *testing.T) {

+ 1 - 1
common/io/chain_writer.go

@@ -4,7 +4,7 @@ import (
 	"io"
 	"sync"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common/alloc"
 )
 
 type ChainWriter struct {

+ 1 - 1
common/io/chan_reader.go

@@ -4,7 +4,7 @@ import (
 	"io"
 	"sync"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common/alloc"
 )
 
 type ChanReader struct {

+ 2 - 2
common/io/reader.go

@@ -3,8 +3,8 @@ package io
 import (
 	"io"
 
-	"github.com/v2ray/v2ray-core/common"
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common"
+	"v2ray.com/core/common/alloc"
 )
 
 // Reader extends io.Reader with alloc.Buffer.

+ 3 - 3
common/io/reader_test.go

@@ -4,9 +4,9 @@ import (
 	"bytes"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
-	. "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/alloc"
+	. "v2ray.com/core/common/io"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestAdaptiveReader(t *testing.T) {

+ 1 - 1
common/io/transport.go

@@ -1,7 +1,7 @@
 package io
 
 import (
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common/log"
 )
 
 func Pipe(reader Reader, writer Writer) error {

+ 2 - 2
common/io/writer.go

@@ -3,8 +3,8 @@ package io
 import (
 	"io"
 
-	"github.com/v2ray/v2ray-core/common"
-	"github.com/v2ray/v2ray-core/common/alloc"
+	"v2ray.com/core/common"
+	"v2ray.com/core/common/alloc"
 )
 
 // Writer extends io.Writer with alloc.Buffer.

+ 3 - 3
common/io/writer_test.go

@@ -5,9 +5,9 @@ import (
 	"crypto/rand"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
-	. "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/alloc"
+	. "v2ray.com/core/common/io"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestAdaptiveWriter(t *testing.T) {

+ 2 - 2
common/loader/json_conf.go

@@ -5,8 +5,8 @@ package loader
 import (
 	"encoding/json"
 
-	"github.com/v2ray/v2ray-core/common"
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common"
+	"v2ray.com/core/common/log"
 )
 
 type JSONConfigLoader struct {

+ 1 - 1
common/loader/loader.go

@@ -2,7 +2,7 @@ package loader
 
 import (
 	"errors"
-	"github.com/v2ray/v2ray-core/common"
+	"v2ray.com/core/common"
 )
 
 var (

+ 1 - 1
common/log/access.go

@@ -1,7 +1,7 @@
 package log
 
 import (
-	"github.com/v2ray/v2ray-core/common/log/internal"
+	"v2ray.com/core/common/log/internal"
 )
 
 // AccessStatus is the status of an access request from clients.

+ 2 - 2
common/log/internal/log_entry.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/v2ray/v2ray-core/common"
-	"github.com/v2ray/v2ray-core/common/serial"
+	"v2ray.com/core/common"
+	"v2ray.com/core/common/serial"
 )
 
 func InterfaceToString(value interface{}) string {

+ 2 - 2
common/log/internal/log_entry_test.go

@@ -3,8 +3,8 @@ package internal_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/log/internal"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/log/internal"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestAccessLog(t *testing.T) {

+ 2 - 2
common/log/internal/log_writer.go

@@ -5,8 +5,8 @@ import (
 	"os"
 	"time"
 
-	"github.com/v2ray/v2ray-core/common/platform"
-	"github.com/v2ray/v2ray-core/common/signal"
+	"v2ray.com/core/common/platform"
+	"v2ray.com/core/common/signal"
 )
 
 type LogWriter interface {

+ 1 - 1
common/log/log.go

@@ -1,7 +1,7 @@
 package log
 
 import (
-	"github.com/v2ray/v2ray-core/common/log/internal"
+	"v2ray.com/core/common/log/internal"
 )
 
 type LogLevel int

+ 2 - 2
common/net/address.go

@@ -3,8 +3,8 @@ package net
 import (
 	"net"
 
-	"github.com/v2ray/v2ray-core/common/log"
-	"github.com/v2ray/v2ray-core/common/predicate"
+	"v2ray.com/core/common/log"
+	"v2ray.com/core/common/predicate"
 )
 
 var (

+ 2 - 2
common/net/address_json_test.go

@@ -7,8 +7,8 @@ import (
 	"net"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestIPParsing(t *testing.T) {

+ 2 - 2
common/net/address_test.go

@@ -4,8 +4,8 @@ import (
 	"net"
 	"testing"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestIPv4Address(t *testing.T) {

+ 2 - 2
common/net/destination_test.go

@@ -3,8 +3,8 @@ package net_test
 import (
 	"testing"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestTCPDestination(t *testing.T) {

+ 2 - 2
common/net/ipnet_test.go

@@ -4,8 +4,8 @@ import (
 	"net"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func parseCIDR(str string) *net.IPNet {

+ 1 - 1
common/net/network.go

@@ -3,7 +3,7 @@ package net
 import (
 	"strings"
 
-	"github.com/v2ray/v2ray-core/common/collect"
+	"v2ray.com/core/common/collect"
 )
 
 const (

+ 1 - 1
common/net/network_json.go

@@ -5,7 +5,7 @@ package net
 import (
 	"encoding/json"
 
-	"github.com/v2ray/v2ray-core/common/collect"
+	"v2ray.com/core/common/collect"
 )
 
 func (this *NetworkList) UnmarshalJSON(data []byte) error {

+ 2 - 2
common/net/network_json_test.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestArrayNetworkList(t *testing.T) {

+ 1 - 1
common/net/port.go

@@ -4,7 +4,7 @@ import (
 	"errors"
 	"strconv"
 
-	"github.com/v2ray/v2ray-core/common/serial"
+	"v2ray.com/core/common/serial"
 )
 
 var (

+ 1 - 1
common/net/port_json.go

@@ -6,7 +6,7 @@ import (
 	"encoding/json"
 	"strings"
 
-	"github.com/v2ray/v2ray-core/common/log"
+	"v2ray.com/core/common/log"
 )
 
 func parseIntPort(data []byte) (Port, error) {

+ 2 - 2
common/net/port_json_test.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestIntPort(t *testing.T) {

+ 2 - 2
common/net/port_test.go

@@ -3,8 +3,8 @@ package net_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestPortRangeContains(t *testing.T) {

+ 2 - 2
common/net/timed_io_test.go

@@ -3,8 +3,8 @@ package net_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/net"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestTimeOutSettings(t *testing.T) {

+ 2 - 2
common/protocol/headers.go

@@ -1,8 +1,8 @@
 package protocol
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/common/uuid"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/common/uuid"
 )
 
 type RequestCommand byte

+ 2 - 2
common/protocol/headers_test.go

@@ -3,8 +3,8 @@ package protocol_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestRequestOptionSet(t *testing.T) {

+ 1 - 1
common/protocol/id.go

@@ -6,7 +6,7 @@ import (
 	"errors"
 	"hash"
 
-	"github.com/v2ray/v2ray-core/common/uuid"
+	"v2ray.com/core/common/uuid"
 )
 
 const (

+ 4 - 4
common/protocol/id_test.go

@@ -3,10 +3,10 @@ package protocol_test
 import (
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/predicate"
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/common/uuid"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/predicate"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/common/uuid"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestCmdKey(t *testing.T) {

+ 3 - 3
common/protocol/server_picker_test.go

@@ -4,9 +4,9 @@ import (
 	"testing"
 	"time"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	v2net "v2ray.com/core/common/net"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestServerList(t *testing.T) {

+ 2 - 2
common/protocol/server_spec.go

@@ -4,8 +4,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/v2ray/v2ray-core/common/dice"
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	"v2ray.com/core/common/dice"
+	v2net "v2ray.com/core/common/net"
 )
 
 type ValidationStrategy interface {

+ 3 - 3
common/protocol/server_spec_test.go

@@ -4,9 +4,9 @@ import (
 	"testing"
 	"time"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	v2net "v2ray.com/core/common/net"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/testing/assert"
 )
 
 type TestAccount struct {

+ 2 - 2
common/protocol/time.go

@@ -3,8 +3,8 @@ package protocol
 import (
 	"time"
 
-	"github.com/v2ray/v2ray-core/common/dice"
-	"github.com/v2ray/v2ray-core/common/serial"
+	"v2ray.com/core/common/dice"
+	"v2ray.com/core/common/serial"
 )
 
 type Timestamp int64

+ 2 - 2
common/protocol/time_test.go

@@ -4,8 +4,8 @@ import (
 	"testing"
 	"time"
 
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestGenerateRandomInt64InRange(t *testing.T) {

+ 2 - 2
common/protocol/user_json_test.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/protocol"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/protocol"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestUserParsing(t *testing.T) {

+ 1 - 1
common/protocol/user_validator.go

@@ -1,7 +1,7 @@
 package protocol
 
 import (
-	"github.com/v2ray/v2ray-core/common"
+	"v2ray.com/core/common"
 )
 
 type UserValidator interface {

+ 2 - 2
common/retry/retry_test.go

@@ -5,8 +5,8 @@ import (
 	"testing"
 	"time"
 
-	. "github.com/v2ray/v2ray-core/common/retry"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/retry"
+	"v2ray.com/core/testing/assert"
 )
 
 var (

+ 2 - 2
common/uuid/uuid_test.go

@@ -3,8 +3,8 @@ package uuid_test
 import (
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/common/uuid"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/common/uuid"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestParseBytes(t *testing.T) {

+ 1 - 1
common/web/service.go

@@ -1,7 +1,7 @@
 package web
 
 import (
-	"github.com/v2ray/v2ray-core/common/protocol"
+	"v2ray.com/core/common/protocol"
 )
 
 type Authenciation struct {

+ 1 - 1
core.go

@@ -4,7 +4,7 @@ package core
 import (
 	"fmt"
 
-	"github.com/v2ray/v2ray-core/common/platform"
+	"v2ray.com/core/common/platform"
 )
 
 var (

+ 7 - 7
proxy/blackhole/blackhole.go

@@ -1,13 +1,13 @@
 package blackhole
 
 import (
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/common/alloc"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/proxy/registry"
-	"github.com/v2ray/v2ray-core/transport/internet"
-	"github.com/v2ray/v2ray-core/transport/ray"
+	"v2ray.com/core/app"
+	"v2ray.com/core/common/alloc"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/proxy/registry"
+	"v2ray.com/core/transport/internet"
+	"v2ray.com/core/transport/ray"
 )
 
 // BlackHole is an outbound connection that sliently swallow the entire payload.

+ 2 - 2
proxy/blackhole/config.go

@@ -1,8 +1,8 @@
 package blackhole
 
 import (
-	"github.com/v2ray/v2ray-core/common/alloc"
-	v2io "github.com/v2ray/v2ray-core/common/io"
+	"v2ray.com/core/common/alloc"
+	v2io "v2ray.com/core/common/io"
 )
 
 type Config struct {

+ 2 - 2
proxy/blackhole/config_json.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"errors"
 
-	"github.com/v2ray/v2ray-core/common/loader"
-	"github.com/v2ray/v2ray-core/proxy/registry"
+	"v2ray.com/core/common/loader"
+	"v2ray.com/core/proxy/registry"
 )
 
 func (this *Config) UnmarshalJSON(data []byte) error {

+ 2 - 2
proxy/blackhole/config_json_test.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"testing"
 
-	. "github.com/v2ray/v2ray-core/proxy/blackhole"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	. "v2ray.com/core/proxy/blackhole"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestHTTPResponseJSON(t *testing.T) {

+ 4 - 4
proxy/blackhole/config_test.go

@@ -5,10 +5,10 @@ import (
 	"net/http"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/common/alloc"
-	v2io "github.com/v2ray/v2ray-core/common/io"
-	. "github.com/v2ray/v2ray-core/proxy/blackhole"
-	"github.com/v2ray/v2ray-core/testing/assert"
+	"v2ray.com/core/common/alloc"
+	v2io "v2ray.com/core/common/io"
+	. "v2ray.com/core/proxy/blackhole"
+	"v2ray.com/core/testing/assert"
 )
 
 func TestHTTPResponse(t *testing.T) {

+ 1 - 1
proxy/dokodemo/config.go

@@ -1,7 +1,7 @@
 package dokodemo
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
+	v2net "v2ray.com/core/common/net"
 )
 
 type Config struct {

+ 2 - 2
proxy/dokodemo/config_json.go

@@ -6,8 +6,8 @@ import (
 	"encoding/json"
 	"errors"
 
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy/registry"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy/registry"
 )
 
 func (this *Config) UnmarshalJSON(data []byte) error {

+ 10 - 10
proxy/dokodemo/dokodemo.go

@@ -3,16 +3,16 @@ package dokodemo
 import (
 	"sync"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	"github.com/v2ray/v2ray-core/common/alloc"
-	v2io "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/proxy/registry"
-	"github.com/v2ray/v2ray-core/transport/internet"
-	"github.com/v2ray/v2ray-core/transport/internet/udp"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dispatcher"
+	"v2ray.com/core/common/alloc"
+	v2io "v2ray.com/core/common/io"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/proxy/registry"
+	"v2ray.com/core/transport/internet"
+	"v2ray.com/core/transport/internet/udp"
 )
 
 type DokodemoDoor struct {

+ 13 - 13
proxy/dokodemo/dokodemo_test.go

@@ -4,19 +4,19 @@ import (
 	"net"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dispatcher"
-	dispatchers "github.com/v2ray/v2ray-core/app/dispatcher/impl"
-	"github.com/v2ray/v2ray-core/app/proxyman"
-	"github.com/v2ray/v2ray-core/common/dice"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/proxy"
-	. "github.com/v2ray/v2ray-core/proxy/dokodemo"
-	"github.com/v2ray/v2ray-core/proxy/freedom"
-	"github.com/v2ray/v2ray-core/testing/assert"
-	"github.com/v2ray/v2ray-core/testing/servers/tcp"
-	"github.com/v2ray/v2ray-core/testing/servers/udp"
-	"github.com/v2ray/v2ray-core/transport/internet"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dispatcher"
+	dispatchers "v2ray.com/core/app/dispatcher/impl"
+	"v2ray.com/core/app/proxyman"
+	"v2ray.com/core/common/dice"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/proxy"
+	. "v2ray.com/core/proxy/dokodemo"
+	"v2ray.com/core/proxy/freedom"
+	"v2ray.com/core/testing/assert"
+	"v2ray.com/core/testing/servers/tcp"
+	"v2ray.com/core/testing/servers/udp"
+	"v2ray.com/core/transport/internet"
 )
 
 func TestDokodemoTCP(t *testing.T) {

+ 3 - 3
proxy/dokodemo/sockopt_linux.go

@@ -5,9 +5,9 @@ package dokodemo
 import (
 	"syscall"
 
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/transport/internet"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/transport/internet"
 )
 
 const SO_ORIGINAL_DST = 80

+ 2 - 2
proxy/dokodemo/sockopt_other.go

@@ -3,8 +3,8 @@
 package dokodemo
 
 import (
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/transport/internet"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/transport/internet"
 )
 
 func GetOriginalDestination(conn internet.Connection) v2net.Destination {

+ 1 - 1
proxy/freedom/config_json.go

@@ -7,7 +7,7 @@ import (
 	"errors"
 	"strings"
 
-	"github.com/v2ray/v2ray-core/proxy/registry"
+	"v2ray.com/core/proxy/registry"
 )
 
 func (this *Config) UnmarshalJSON(data []byte) error {

+ 13 - 13
proxy/freedom/freedom.go

@@ -3,19 +3,19 @@ package freedom
 import (
 	"io"
 
-	"github.com/v2ray/v2ray-core/app"
-	"github.com/v2ray/v2ray-core/app/dns"
-	"github.com/v2ray/v2ray-core/common/alloc"
-	"github.com/v2ray/v2ray-core/common/dice"
-	v2io "github.com/v2ray/v2ray-core/common/io"
-	"github.com/v2ray/v2ray-core/common/log"
-	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/common/retry"
-	"github.com/v2ray/v2ray-core/proxy"
-	"github.com/v2ray/v2ray-core/proxy/registry"
-	"github.com/v2ray/v2ray-core/transport/internet"
-	"github.com/v2ray/v2ray-core/transport/internet/tcp"
-	"github.com/v2ray/v2ray-core/transport/ray"
+	"v2ray.com/core/app"
+	"v2ray.com/core/app/dns"
+	"v2ray.com/core/common/alloc"
+	"v2ray.com/core/common/dice"
+	v2io "v2ray.com/core/common/io"
+	"v2ray.com/core/common/log"
+	v2net "v2ray.com/core/common/net"
+	"v2ray.com/core/common/retry"
+	"v2ray.com/core/proxy"
+	"v2ray.com/core/proxy/registry"
+	"v2ray.com/core/transport/internet"
+	"v2ray.com/core/transport/internet/tcp"
+	"v2ray.com/core/transport/ray"
 )
 
 type FreedomConnection struct {

Some files were not shown because too many files changed in this diff