@@ -301,64 +301,64 @@ Example configuration:
301301
302302 // Extended multiple local configuration
303303 " locals" : [
304- {
305- // Basic configuration, a SOCKS5 local server
306- " local_address" : " 127.0.0.1" ,
307- " local_port" : 1080 ,
308- // OPTIONAL. Setting the `mode` for this specific local server instance.
309- // If not set, it will derive from the outer `mode`
310- " mode" : " tcp_and_udp"
311- },
312- {
313- // SOCKS5, SOCKS4/4a local server
314- " protocol" : " socks" ,
315- // Listen address
316- " local_address" : " 127.0.0.1" ,
317- " local_port" : 1081 ,
318- // OPTIONAL. Enables UDP relay
319- " mode" : " tcp_and_udp" ,
320- // OPTIONAL. Customizing the UDP's binding address. Depending on `mode`, if
321- // - TCP is enabled, then SOCKS5's UDP Association command will return this address
322- // - UDP is enabled, then SOCKS5's UDP server will listen to this address.
323- " local_udp_address" : " 127.0.0.1" ,
324- " local_udp_port" : 2081
325- },
326- {
327- // Tunnel local server (feature = "local-tunnel")
328- " protocol" : " tunnel" ,
329- // Listen address
330- " local_address" : " 127.0.0.1" ,
331- " local_port" : 5353 ,
332- // Forward address, the target of this tunnel
333- // In this example, this will build a `127.0.0.1:5353` -> `8.8.8.8:53` tunnel
334- " forward_address" : " 8.8.8.8" ,
335- " forward_port" : 53 ,
336- // OPTIONAL. Customizing whether to start TCP and UDP tunnel
337- " mode" : " tcp_only"
338- },
339- {
340- // HTTP local server (feature = "local-http")
341- " protocol" : " http" ,
342- // Listen address
343- " local_address" : " 127.0.0.1" ,
344- " local_port" : 3128
345- },
346- {
347- // DNS local server (feature = "local-dns")
348- // This DNS works like China-DNS, it will send requests to `local_dns` and `remote_dns` and choose by ACL rules
349- " protocol" : " dns" ,
350- // Listen address
351- " local_address" : " 127.0.0.1" ,
352- " local_port" : 53 ,
353- // Local DNS address, DNS queries will be sent directly to this address
354- " local_dns_address" : " 114.114.114.114" ,
355- // OPTIONAL. Local DNS's port, 53 by default
356- " local_dns_port" : 53 ,
357- // Remote DNS address, DNS queries will be sent through ssserver to this address
358- " remote_dns_address" : " 8.8.8.8" ,
359- // OPTIONAL. Remote DNS's port, 53 by default
360- " remote_dns_port" : 53
361- }
304+ {
305+ // Basic configuration, a SOCKS5 local server
306+ " local_address" : " 127.0.0.1" ,
307+ " local_port" : 1080 ,
308+ // OPTIONAL. Setting the `mode` for this specific local server instance.
309+ // If not set, it will derive from the outer `mode`
310+ " mode" : " tcp_and_udp"
311+ },
312+ {
313+ // SOCKS5, SOCKS4/4a local server
314+ " protocol" : " socks" ,
315+ // Listen address
316+ " local_address" : " 127.0.0.1" ,
317+ " local_port" : 1081 ,
318+ // OPTIONAL. Enables UDP relay
319+ " mode" : " tcp_and_udp" ,
320+ // OPTIONAL. Customizing the UDP's binding address. Depending on `mode`, if
321+ // - TCP is enabled, then SOCKS5's UDP Association command will return this address
322+ // - UDP is enabled, then SOCKS5's UDP server will listen to this address.
323+ " local_udp_address" : " 127.0.0.1" ,
324+ " local_udp_port" : 2081
325+ },
326+ {
327+ // Tunnel local server (feature = "local-tunnel")
328+ " protocol" : " tunnel" ,
329+ // Listen address
330+ " local_address" : " 127.0.0.1" ,
331+ " local_port" : 5353 ,
332+ // Forward address, the target of this tunnel
333+ // In this example, this will build a `127.0.0.1:5353` -> `8.8.8.8:53` tunnel
334+ " forward_address" : " 8.8.8.8" ,
335+ " forward_port" : 53 ,
336+ // OPTIONAL. Customizing whether to start TCP and UDP tunnel
337+ " mode" : " tcp_only"
338+ },
339+ {
340+ // HTTP local server (feature = "local-http")
341+ " protocol" : " http" ,
342+ // Listen address
343+ " local_address" : " 127.0.0.1" ,
344+ " local_port" : 3128
345+ },
346+ {
347+ // DNS local server (feature = "local-dns")
348+ // This DNS works like China-DNS, it will send requests to `local_dns` and `remote_dns` and choose by ACL rules
349+ " protocol" : " dns" ,
350+ // Listen address
351+ " local_address" : " 127.0.0.1" ,
352+ " local_port" : 53 ,
353+ // Local DNS address, DNS queries will be sent directly to this address
354+ " local_dns_address" : " 114.114.114.114" ,
355+ // OPTIONAL. Local DNS's port, 53 by default
356+ " local_dns_port" : 53 ,
357+ // Remote DNS address, DNS queries will be sent through ssserver to this address
358+ " remote_dns_address" : " 8.8.8.8" ,
359+ // OPTIONAL. Remote DNS's port, 53 by default
360+ " remote_dns_port" : 53
361+ }
362362 ],
363363
364364 // Server configuration
0 commit comments