format code

pull/55/head
V2Ray 2015-10-31 14:08:13 +01:00
parent 3765826602
commit 1c09b70931
10 changed files with 65 additions and 60 deletions

View File

@ -16,6 +16,11 @@ type LogConfig interface {
AccessLog() string
}
type InboundDetour interface {
Protocol() string
Port()
}
type PointConfig interface {
Port() uint16
LogConfig() LogConfig

View File

@ -17,7 +17,7 @@ type UserSettings struct {
}
func GetUserSettings(level UserLevel) UserSettings {
settings := UserSettings {
settings := UserSettings{
PayloadReadTimeout: 120,
}
if level > 0 {

View File

@ -33,7 +33,7 @@ func TestVMessSerialization(t *testing.T) {
t.Fatal(err)
}
testUser := &TestUser {
testUser := &TestUser{
id: userId,
}