Update optionsmodel.cpp

Correction of errors compiling on Linux with IPV6 defines enabled.