Darien Raymond 10 年 前
コミット
3327cb0b80

+ 1 - 1
shell/point/inbound_detour.go

@@ -56,7 +56,7 @@ func (this *InboundDetourHandler) Start() error {
 			return nil
 		})
 		if err != nil {
-		  return err
+			return err
 		}
 	}
 	return nil

+ 1 - 1
testing/scenarios/dokodemo_test.go

@@ -53,4 +53,4 @@ func TestDokodemoTCP(t *testing.T) {
 		assert.StringLiteral("Processed: " + payload).Equals(string(response[:nBytes]))
 		conn.Close()
 	}
-}
+}

+ 4 - 4
testing/scenarios/server_env.go

@@ -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