fix

it replaces the content of current string as well for some reasons, so before it wrote the IP into configuration, see https://en.wikipedia.org/w/index.php?diff=597259841