You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,22 +111,24 @@ Read `Cargo.toml` for more details.
111
111
112
112
Create a ShadowSocks' configuration file. Example
113
113
114
-
```json
114
+
```jsonc
115
115
{
116
116
"server":"my_server_ip",
117
117
"server_port":8388,
118
-
"local_address": "127.0.0.1",
119
-
"local_port": 1080,
120
118
"password":"mypassword",
121
-
"method": "aes-256-gcm"
119
+
"method":"aes-256-gcm",
120
+
// ONLY FOR `sslocal`
121
+
// Delete these lines if you are running `ssserver` or `ssmanager`
122
+
"local_address":"127.0.0.1",
123
+
"local_port":1080
122
124
}
123
125
```
124
126
125
127
Detailed explanation could be found in [shadowsocks' documentation](https://github.com/shadowsocks/shadowsocks/wiki).
126
128
127
129
In shadowsocks-rust, we also have an extended configuration file format, which is able to define more than one server. You can also disable individual servers.
128
130
129
-
```json
131
+
```jsonc
130
132
{
131
133
"servers": [
132
134
{
@@ -150,6 +152,8 @@ In shadowsocks-rust, we also have an extended configuration file format, which i
150
152
"method":"chacha20-ietf-poly1305"
151
153
}
152
154
],
155
+
// ONLY FOR `sslocal`
156
+
// Delete these lines if you are running `ssserver` or `ssmanager`
153
157
"local_port":1080,
154
158
"local_address":"127.0.0.1"
155
159
}
@@ -291,6 +295,7 @@ Example configuration:
291
295
{
292
296
// LOCAL: Listen address. This is exactly the same as `locals[0]`
293
297
// SERVER: Bind address for remote sockets, mostly used for choosing interface
298
+
// Don't set it if you don't know what's this for.
0 commit comments