summaryrefslogtreecommitdiffstats
path: root/source/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-04 19:40:48 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-04 19:40:48 +0100
commiteb68b7ce0157fd55b7d50cca956986d0fdb60bd1 (patch)
treec0aa246374d5dcb034b4652ea937fc0a5478c67b /source/Server.cpp
parentPlayer can sit in minecarts (but not move them yet) (diff)
downloadcuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar.gz
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar.bz2
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar.lz
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar.xz
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.tar.zst
cuberite-eb68b7ce0157fd55b7d50cca956986d0fdb60bd1.zip
Diffstat (limited to 'source/Server.cpp')
-rw-r--r--source/Server.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/Server.cpp b/source/Server.cpp
index 7a41352ab..1e830874e 100644
--- a/source/Server.cpp
+++ b/source/Server.cpp
@@ -188,12 +188,7 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
int Port = a_SettingsIni.GetValueSetI("Server", "Port", 25565);
- cSocket::SockAddr_In local;
- local.Family = cSocket::ADDRESS_FAMILY_INTERNET;
- local.Address = cSocket::INTERNET_ADDRESS_ANY;
- local.Port = (unsigned short)Port;
-
- if( m_pState->SListenClient.Bind( local ) != 0 )
+ if (m_pState->SListenClient.BindToAny(Port) != 0)
{
LOGERROR("bind fail (%s)", cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
return false;