[Question] Inbound/DNS in server config vs App settings

#95 · closed · 1 comments

View on GitHub ↗

max-dw-i

I have a question. How do `inbound` and `dns` in the server config work together with the same app settings. Let's say I have this config: ``` { "dns": { "hosts": { "dns.google": ["8.8.8.8", "8.8.4.4"] }, "servers": [ { "tag": "google-dns", "address": "https://dns.google/dns-query" } ] }, "inbounds": [ { "tag": "socks-in", "port": 1080, "listen": "127.0.0.1", "protocol": "socks", "settings": { "udp": true } } ], "outbounds": [ { "tag": "socks-out", "protocol": "socks", "settings": { "servers": [ { "address": "upstream-proxy-ip.com", "port": 1081 } ] } } ] } ``` And there are default settings when I go to the app settings like `Socks Address`, `Socks Port` (default is 10808) and `Primary DNS (v4)`, `Secondary DNS (v4)` (in Advanced). How do these 2 types of settings interact? Does one overrides another? Which one? Or they work together? What is used at the end with my config? Thanks.

Comments

SaeedDev94

Those should be same (socks port, dns, ...), In theory app should reads those values from the json config but ... it is what it is for now ! :)