mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
gofmt
This commit is contained in:
parent
67d597af95
commit
7a14f646ee
@ -89,7 +89,7 @@ func TestIPResolution(t *testing.T) {
|
|||||||
space.BindApp(router.APP_ID, r)
|
space.BindApp(router.APP_ID, r)
|
||||||
dnsServer := dns.NewCacheServer(space, &dns.Config{
|
dnsServer := dns.NewCacheServer(space, &dns.Config{
|
||||||
Hosts: map[string]*v2net.IPOrDomain{
|
Hosts: map[string]*v2net.IPOrDomain{
|
||||||
"v2ray.com": &v2net.IPOrDomain{
|
"v2ray.com": {
|
||||||
Address: &v2net.IPOrDomain_Ip{
|
Address: &v2net.IPOrDomain_Ip{
|
||||||
Ip: []byte{127, 0, 0, 1},
|
Ip: []byte{127, 0, 0, 1},
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package inbound
|
package inbound
|
||||||
|
|
||||||
import ()
|
|
||||||
|
|
||||||
func (this *Config) GetDefaultValue() *DefaultConfig {
|
func (this *Config) GetDefaultValue() *DefaultConfig {
|
||||||
if this.GetDefault() == nil {
|
if this.GetDefault() == nil {
|
||||||
return &DefaultConfig{
|
return &DefaultConfig{
|
||||||
|
@ -1,3 +1 @@
|
|||||||
package outbound
|
package outbound
|
||||||
|
|
||||||
import ()
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
2
v2ray.go
2
v2ray.go
@ -57,7 +57,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
|
|||||||
if !space.HasApp(dns.APP_ID) {
|
if !space.HasApp(dns.APP_ID) {
|
||||||
dnsServer := dns.NewCacheServer(space, &dns.Config{
|
dnsServer := dns.NewCacheServer(space, &dns.Config{
|
||||||
NameServers: []*v2net.Endpoint{
|
NameServers: []*v2net.Endpoint{
|
||||||
&v2net.Endpoint{
|
{
|
||||||
Address: &v2net.IPOrDomain{
|
Address: &v2net.IPOrDomain{
|
||||||
Address: &v2net.IPOrDomain_Domain{
|
Address: &v2net.IPOrDomain_Domain{
|
||||||
Domain: "localhost",
|
Domain: "localhost",
|
||||||
|
Loading…
Reference in New Issue
Block a user