sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

Nodes crash when using domain name for address #345

Closed mihails-strasuns closed 5 years ago

mihails-strasuns commented 6 years ago

Specifying this in config.ini of any node:

[Server]
address = localhost

.. results in a segfault here:

#0  0x00000000006969f7 in ocean.net.server.SelectListener.ISelectListener._ctor(core.sys.posix.sys.socket.sockaddr*, ocean.sys.socket.model.ISocket.ISocket, int, int) (
    this=0x7ffff7f3e600, protocol=0, backlog=2048, socket=0x7ffff7f3e900, address=0x0)
    at ./submodules/ocean/src/ocean/net/server/SelectListener.d:150

It should either do name resolution or reject anything that is not a valid IP.