Unverified Commit 686ccfdd authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Skip warning about web port (#940)

parent 82b558d5
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -258,11 +258,14 @@ getUserPorts() {

    for hostport in ${exclude//,/ }; do

      local val="${hostport///tcp}"
      local port="${hostport///tcp}"
      port="${port///udp}"

      if [[ "$num" == "${val///udp}" ]]; then
      if [[ "$num" == "$port" ]]; then
        num=""
        warn "Could not assign port ${val///udp} to \"USER_PORTS\" because it is already in \"HOST_PORTS\"!"
        if [[ "$port" != "$WEB_PORT" ]]; then
          warn "Could not assign port $port to \"USER_PORTS\" because it is already in \"HOST_PORTS\"!"
        fi
      fi

    done