diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-08 11:24:07 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-08 11:24:07 +0200 |
commit | b0971f4459fd37813dd4779f2ddaf9b38cf5f776 (patch) | |
tree | 3a839ab26708e7891a32f5125bb2fdde47cc2ae3 /src/socket.h | |
parent | 15f27a19378345c22b07e37ab324581d55ad9c5b (diff) | |
download | hax-minetest-server-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.tar.gz hax-minetest-server-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.zip |
local game connects to 127.0.0.1 instead of localhost (windows returns an ipv6 address sometimes which is not supported)
Diffstat (limited to '')
-rw-r--r-- | src/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index b6b580073..a56715d99 100644 --- a/src/socket.h +++ b/src/socket.h @@ -85,6 +85,8 @@ public: unsigned int getAddress() const; unsigned short getPort() const; void setAddress(unsigned int address); + void setAddress(unsigned int a, unsigned int b, + unsigned int c, unsigned int d); void setPort(unsigned short port); void print(std::ostream *s) const; void print() const; |