When adding to favorites, have the client look up the server supplied domain name and compare it to the current IP address of the server. If they they're not equal add the IP only, preventing both misconfigurations and forgery from ruining the users day. If they are equal, add the domain name as well as the IP and compare again on future connects.
If they're not equal once added show an error message with both addresses as well as the current server title and explain to the user that the server may have moved, and ask the user what action to take. If the user complies, update the last known IP for that favorite entry. Problem solved and we can use DNS exactly what it's for. However, it does not deal with ports. On Mon, Jan 30, 2012 at 01:30, Necavi <[email protected]> wrote: > If I remember correctly, the reason that valve has not done this in the past > is to prevent server operators from basically having the power to redirect > multiple players to the same server by abusing hostnames. They are able to do > this by either starting up a dozen servers, each claiming the same hostname > as their main server, meaning that if anyone favorites that particular server > they are in fact favoriting the main server. (Note: this particular exploit > only really works if the hostname is set by cvar, other exploits exist for > other methods). Granted, I'm one of the server operators who wishes that kind > of power, but for a different reason, I tend to host servers with RPG > elements (such as War3Source) and I've always fantasized about having a > server that controls access to all the other ones, sorting players out by > their RPG level or something similar, doing almost exactly the opposite of > what valve is trying to protect against (phantom servers redirecting to a > real one, this is more similar to a single phantom server taking the place of > several real ones). > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Niko Montonen > Sent: Sunday, January 29, 2012 16:11 > To: Half-Life dedicated Linux server mailing list > Subject: Re: [hlds_linux] CS:GO hostname setting? > > I completely understand why people want to link servers to SteamID's, but > it might not be smart to force people to do that. > > If you want to force people to attach an identity to a server, public key > crypto might be a good idea. > > That way you can prove you're the owner of all the servers you claim to > control (key for all servers made out of same private key), while allowing > people to stay anonymous (new private and public key for every server). > > Tools for creating such cryptographic keys are available on most operating > systems, so that's not a problem. > > But I like the idea of being able to link your server to your SteamID. > > (Disclaimer: Anything I may have just written may be wrong, it's 2am and > I'm tired.) > > Just my 0,02€ > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

