Better value for --ipalloc-range in attach-router
The previous regex matched a blank --ipalloc-range and the following parameter, which defeated the whole point of the check.
This commit is contained in:
1 parent
9b606fb823
commit
317c6ba04c
1 file changed
+1
-1
@@ -1704,7 +1704,7 @@ setup_awsvpc() {
|
||||
# Recreate the parameter values that are set when the router is first launched
|
||||
fetch_router_args() {
|
||||
CONTAINER_ARGS=$(docker inspect -f '{{.Args}}' $CONTAINER_NAME) || return 1
|
||||
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*') || true
|
||||
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -E -e '-ipalloc-range [0-9/.]+') || true
|
||||
NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns') || true
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user