mirror of https://github.com/v2ray/v2ray-core
				
				
				
			format code
							parent
							
								
									1a25931944
								
							
						
					
					
						commit
						3327cb0b80
					
				|  | @ -56,7 +56,7 @@ func (this *InboundDetourHandler) Start() error { | ||||||
| 			return nil | 			return nil | ||||||
| 		}) | 		}) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 		  return err | 			return err | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
|  |  | ||||||
|  | @ -53,4 +53,4 @@ func TestDokodemoTCP(t *testing.T) { | ||||||
| 		assert.StringLiteral("Processed: " + payload).Equals(string(response[:nBytes])) | 		assert.StringLiteral("Processed: " + payload).Equals(string(response[:nBytes])) | ||||||
| 		conn.Close() | 		conn.Close() | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -1,8 +1,8 @@ | ||||||
| package scenarios | package scenarios | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
|   "os" | 	"os" | ||||||
|   "path/filepath" | 	"path/filepath" | ||||||
| 
 | 
 | ||||||
| 	_ "github.com/v2ray/v2ray-core/app/router/config/json" | 	_ "github.com/v2ray/v2ray-core/app/router/config/json" | ||||||
| 	_ "github.com/v2ray/v2ray-core/app/router/rules" | 	_ "github.com/v2ray/v2ray-core/app/router/rules" | ||||||
|  | @ -25,11 +25,11 @@ import ( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func TestFile(filename string) string { | 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 { | func InitializeServer(configFile string) error { | ||||||
|   config, err := jsonconf.LoadConfig(configFile) | 	config, err := jsonconf.LoadConfig(configFile) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		log.Error("Failed to read config file (%s): %v", configFile, err) | 		log.Error("Failed to read config file (%s): %v", configFile, err) | ||||||
| 		return err | 		return err | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Darien Raymond
						Darien Raymond