No special parsing needed for DNS arguments
This commit is contained in:
1 parent
9740478151
commit
3595c71d8b
1 file changed
+1
-7
@@ -1242,8 +1242,6 @@ launch() {
|
||||
IPRANGE_SPECIFIED=
|
||||
|
||||
[ -n "$DOCKER_BRIDGE_IP" ] || DOCKER_BRIDGE_IP=$(util_op bridge-ip $DOCKER_BRIDGE)
|
||||
DNS_ROUTER_OPTS="--dns-listen-address $DOCKER_BRIDGE_IP:53"
|
||||
NO_DNS_OPT=
|
||||
|
||||
while [ $# -gt 0 ] ; do
|
||||
case "$1" in
|
||||
@@ -1275,10 +1273,6 @@ launch() {
|
||||
IPRANGE="${1#*=}"
|
||||
IPRANGE_SPECIFIED=1
|
||||
;;
|
||||
--no-dns)
|
||||
DNS_ROUTER_OPTS=
|
||||
NO_DNS_OPT="--no-dns"
|
||||
;;
|
||||
--no-restart)
|
||||
RESTART_POLICY=
|
||||
;;
|
||||
@@ -1374,7 +1368,7 @@ launch() {
|
||||
$(router_bridge_opts) \
|
||||
--ipalloc-range "$IPRANGE" \
|
||||
--dns-effective-listen-address $DOCKER_BRIDGE_IP \
|
||||
$DNS_ROUTER_OPTS $NO_DNS_OPT \
|
||||
--dns-listen-address $DOCKER_BRIDGE_IP:53 \
|
||||
$PLUGIN_ARGS \
|
||||
--http-addr $HTTP_ADDR \
|
||||
--status-addr $STATUS_ADDR \
|
||||
|
||||
Reference in new issue
Block a user