App Setting

Here are some optional configurations for VPN.

Tun #

You can think of the Tun device as a virtual network card. When the VPN is started, the operating system will create a new Tun device to take over all network traffic of the system.

DNS #

There are two DNS configurations here, one IPv4 address and one IPv6 address. Please note that the address does not include the port number. When the VPN is started, these two addresses will be set to the Tun device.

These two DNS addresses will become the default DNS for the system. When other applications initiate DNS queries, the DNS query results they get “seem” to be obtained from these two addresses. The reason why I say “seem” is that after the DNS query traffic reaches Xray-core, it will be taken over by Xray-core.

The DNS configuration here has another function, which is to resolve your server address. When address in your outbound configuration is in the form of a domain name, the query of the domain name will be executed by the DNS configured here, not the DNS you specified in “Xray Setting”.

Always-on #

When this configuration item is turned on, the system will automatically start the VPN, regardless of whether the system is restarted or the VPN process is killed. If you want to turn this option off, please restart the VPN once after turning it off for the option to take effect.