Skip to content

Commit

Permalink
unify config formats of all shadowsocks implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Nov 7, 2012
1 parent 21d07b0 commit 219f0a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"Server":"127.0.0.1",
"ServerPort":8388,
"LocalPort":1080,
"Password":"barfoo!"
"server":"127.0.0.1",
"server_port":8388,
"local_port":1080,
"password":"barfoo!",
"timeout":60
}
8 changes: 4 additions & 4 deletions src/shadowsocks/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"log"
)
type Config struct {
Server string
ServerPort int
LocalPort int
Password string
Server string `json:"server"`
ServerPort int `json:"server_port"`
LocalPort int `json:"local_port"`
Password string `json:"password"`
}

func ParseConfig() Config {
Expand Down

0 comments on commit 219f0a0

Please sign in to comment.