1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 08:25:18 +00:00

Fixed MAC and IP spoofing

This commit is contained in:
Anatoliy Guskov 2015-07-30 14:28:36 +03:00
parent d7dffcd883
commit 5ec8895325

View file

@ -193,7 +193,8 @@ class wvmCreate(wvmConnect):
xml += """<interface type='network'>"""
if mac:
xml += """<mac address='%s'/>""" % mac
xml += """<source network='%s'/>""" % net
xml += """<source network='%s'/>
<filterref filter='clean-traffic'/>""" % net
if virtio:
xml += """<model type='virtio'/>"""
xml += """</interface>"""