saschpe / libvirt-hook-qemu

Libvirt hook for setting up iptables port-forwarding rules when using NAT-ed networking.
234 stars 69 forks source link

Multiple IP fix #2

Closed noxer closed 8 years ago

noxer commented 8 years ago

When the host has multiple public IPs the script would create invalid iptable commands. Fixed it by filtering the string returned by host_ip().