mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
format code
This commit is contained in:
parent
1a25931944
commit
3327cb0b80
@ -56,7 +56,7 @@ func (this *InboundDetourHandler) Start() error {
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
@ -53,4 +53,4 @@ func TestDokodemoTCP(t *testing.T) {
|
||||
assert.StringLiteral("Processed: " + payload).Equals(string(response[:nBytes]))
|
||||
conn.Close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
package scenarios
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
_ "github.com/v2ray/v2ray-core/app/router/config/json"
|
||||
_ "github.com/v2ray/v2ray-core/app/router/rules"
|
||||
@ -25,11 +25,11 @@ import (
|
||||
)
|
||||
|
||||
func TestFile(filename string) string {
|
||||
return filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "v2ray", "v2ray-core", "testing", "scenarios", "data", filename)
|
||||
return filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "v2ray", "v2ray-core", "testing", "scenarios", "data", filename)
|
||||
}
|
||||
|
||||
func InitializeServer(configFile string) error {
|
||||
config, err := jsonconf.LoadConfig(configFile)
|
||||
config, err := jsonconf.LoadConfig(configFile)
|
||||
if err != nil {
|
||||
log.Error("Failed to read config file (%s): %v", configFile, err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user