]> git.proxmox.com Git - qemu.git/commit
slirp: Canonicalize restrict syntax
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Jul 2011 10:20:14 +0000 (12:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 15:19:49 +0000 (10:19 -0500)
commitc54ed5bcdd8ed29f9cdfcfc0e456b6ec1f25d2c3
tree8aef013391d00fc25269423ebe4d6bc379554564
parent12b513d837c9da5277390ddaf98ca0058339977a
slirp: Canonicalize restrict syntax

All other boolean arguments accept on|off - except for slirp's restrict.
Fix that while still accepting the formerly allowed yes|y|no|n, but
reject everything else. This avoids accidentally allowing external
connections because syntax errors were so far interpreted as
'restrict=no'.

CC: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/slirp.c
qemu-options.hx