Poor detection of local IP address
Status: Beta
Brought to you by:
v_o_iper
Hello
I had some trouble running VoIPER v0.07 on a fresh installation of Debian Lenny, the fuzzer was sending a loopback address (127.0.1.1) in the Contact parameter of the REGISTER message.
I traced it back to fuzzer/fuzzer_parents.py:225 :
self.local_ip = socket.gethostbyname(socket.gethostname())
On a default setup of Debian, it appears that socket.gethostname() returns "debian" or whatever was specified on the installer, and thus socket.gethostbyname(...) will give 127.0.1.1 according to /etc/hosts.
Please, can you improve this detection mecanism, add a new argument to fuzzer.py, or a variable in voiper.config to override local_ip ?
Thanks!