04-28-2015, 04:53 PM
(This post was last modified: 08-10-2015, 10:03 PM by BuddyFriendGuy.)
I need some help understand the setting for sv_public. This is from the source code:
When I ran a test server (in the cloud, not locally), I set it to 0, but my server still appears in the master server. I got a few visitors as well.
Then Sl@ve told me that it should be -1 (thank you again!) if I don't want it to show in the master server list. I set it to -1, and successfully made it private -- the only way I could connect to it is by typing the IP by hand.
The darkplaces code suggests that the only difference between 1 and 0 is that 1 responds to heartbeat query but 0 doesn't. It seems that 0 still connects to the public list.
What's the use of 0 then?
- 1: advertises this server on the master server (so that players can find it in the server browser);
- 0: allow direct queries only;
- -1: do not respond to direct queries;
- -2: do not allow anyone to connect
When I ran a test server (in the cloud, not locally), I set it to 0, but my server still appears in the master server. I got a few visitors as well.
Then Sl@ve told me that it should be -1 (thank you again!) if I don't want it to show in the master server list. I set it to -1, and successfully made it private -- the only way I could connect to it is by typing the IP by hand.
The darkplaces code suggests that the only difference between 1 and 0 is that 1 responds to heartbeat query but 0 doesn't. It seems that 0 still connects to the public list.
What's the use of 0 then?