Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit fa2045f

Browse files
committed
Use on/off values for KEEP_DNS_UNCHANGED variable, update README
Use on/off intead of yes/no for consistency
1 parent de244a7 commit fa2045f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ services:
6666
| Variable | Default (blank is unset) | Description |
6767
| --- | --- | --- |
6868
| `HTTP_PROXY` | `off` | The on/off status of Tinyproxy, the built-in HTTP proxy server. To enable, set to `on`. Any other value (including unset) will cause the proxy server to not start. It listens on port 8080. |
69+
| `KEEP_DNS_UNCHAGED` | `off` | If `off`, the VPN server you connect to might override the DNS server used by the container. If `on`, the container will always use the DNS settings it had before connecting to the server. Usually, containers use the Docker internal DNS server by default. It allows to resolve IP addreses from container names, service names and Docker-specific names such as `host.docker.internal`. If DNS server is overriden, you won't be able to resolve such names. |
6970
| `KILL_SWITCH` | `on` | The on/off status of the network kill switch. |
7071
| `LISTEN_ON` | | Address the proxies will be listening on. Set to `0.0.0.0` to listen on all IP addresses. |
7172
| `PROXY_PASSWORD` | | Credentials for accessing the proxies. If `PROXY_PASSWORD` is specified, you must also specify `PROXY_USERNAME`. |

data/scripts/entry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo "
3131
Kill switch: ${KILL_SWITCH:-off}
3232
HTTP proxy: ${HTTP_PROXY:-off}
3333
SOCKS proxy: ${SOCKS_PROXY:-off}
34-
Keep /etc/resolv.conf unchanged: ${KEEP_DNS_UNCHANGED:-no}
34+
Keep DNS settings unchanged: ${KEEP_DNS_UNCHANGED:-off}
3535
Proxy username secret: ${PROXY_PASSWORD_SECRET:-none}
3636
Proxy password secret: ${PROXY_USERNAME_SECRET:-none}
3737
Allowing subnets: ${SUBNETS:-none}
@@ -67,7 +67,7 @@ sed -i \
6767
-e 's/^proto tcp$/proto tcp4/' \
6868
"$config_file_modified"
6969

70-
if [[ "$KEEP_DNS_UNCHANGED" != "yes" ]]; then
70+
if [[ "$KEEP_DNS_UNCHANGED" != "on" ]]; then
7171
echo "up /etc/openvpn/up.sh" >> "$config_file_modified"
7272
echo "down /etc/openvpn/down.sh" >> "$config_file_modified"
7373
fi

0 commit comments

Comments
 (0)