Unverified Commit c5519535 authored by skbeh's avatar skbeh Committed by GitHub
Browse files

feat: Enable IPv6 support for user-mode container networking (#765)

parent 6f1a63fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ getHostPorts() {

configureUser() {

  NET_OPTS="-netdev user,id=hostnet0,host=${VM_NET_IP%.*}.1,net=${VM_NET_IP%.*}.0/24,dhcpstart=$VM_NET_IP,hostname=$VM_NET_HOST"
  NET_OPTS="-netdev user,id=hostnet0,ipv4=on,host=${VM_NET_IP%.*}.1,net=${VM_NET_IP%.*}.0/24,dhcpstart=$VM_NET_IP,ipv6=on,hostname=$VM_NET_HOST"

  local forward
  forward=$(getUserPorts "$USER_PORTS")