Skip to content

Commit

Permalink
Simplify config.json, add examples for multiple ports/servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Dec 24, 2012
1 parent 9f9ecab commit 5cdb24b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
19 changes: 7 additions & 12 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"server":["127.0.0.1"],
"server_port":8388,
"local_port":1080,
"password":"barfoo!",
"port_password": {
"8388": "barfoo!",
"8387": "foobar!"
},
"timeout":60,
"cache_enctable":false
}
{
"server":"127.0.0.1",
"server_port":8388,
"local_port":1080,
"password":"barfoo!",
"timeout":60
}
7 changes: 7 additions & 0 deletions sample-config/client-multi-server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"local_port":1081,
"server_password": {
"127.0.0.1:8387": "foobar",
"127.0.0.1:8388": "barfoo"
}
}
8 changes: 8 additions & 0 deletions sample-config/server-multi-port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"port_password": {
"8387": "foobar",
"8388": "barfoo"
},
"timeout": 60,
"cache_enctable": true
}

0 comments on commit 5cdb24b

Please sign in to comment.