Unverified Commit 4d0d1602 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Podman detection (#971)

parent 60dd794b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -192,6 +192,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
@@ -199,8 +200,7 @@ configureNAT() {
  fi

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

  # Check port forwarding flag