Unverified Commit 47e6ebc4 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Podman detection (#752)

parent 433265fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ configureNAT() {

  # Create the necessary file structure for /dev/net/tun
  if [ ! -c /dev/net/tun ]; then
    [[ "$PODMAN" == [Yy1]* ]] && return 1
    [ ! -d /dev/net ] && mkdir -m 755 /dev/net
    if mknod /dev/net/tun c 10 200; then
      chmod 666 /dev/net/tun
@@ -207,8 +208,7 @@ configureNAT() {
  fi

  if [ ! -c /dev/net/tun ]; then
    [[ "$PODMAN" != [Yy1]* ]] && error "$tuntap"
    return 1
    error "$tuntap" && return 1
  fi

  # Check port forwarding flag