home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.irc
- Path: sparky!uunet!pipex!doc.ic.ac.uk!warwick!sunserver1.aston.ac.uk!uhura!evansmp
- From: evansmp@uhura.aston.ac.uk (Mark Evans)
- Subject: Re: patriot.mit.edu (vanity server alert)
- Message-ID: <1992Dec18.082654.17711@aston.ac.uk>
- Sender: usenet@aston.ac.uk (Usenet administrator)
- Nntp-Posting-Host: uhura
- Organization: Aston University
- X-Newsreader: TIN [version 1.1 PL241235]
- References: <9212172023.AA08764@hrt213.brooks.af.mil>
- Date: Fri, 18 Dec 1992 08:26:54 GMT
- Lines: 54
-
- Tim Miller (tjm@hrt213.brooks.af.mil) wrote:
- : On Thu, 17 Dec 1992 16:16:50 GMT, mnystrom@athena.mit.edu (Mika Nystroem) said:
- :
- : M> I haven't fixed it because I don't have root access and the people who do aren't
- : M> going to. I did the following instead:
- :
- : M> [from /scratch2/mnystrom/ircd.conf]
- :
- : M> K:patriot::*
- : M> K:localhost::*
- :
- : M> So now we get:
- : M> *** Connecting to port 6667 of server patriot
- : M> *** *** Ghosts are not allowed on IRC.
- :
- : M> I hope everyone is satisfied.
- :
- : Hardly. Take it out.
- :
- : Why should you disallow user on the host local to the server
- : simply because some loser decides that it offends his sensibilities?
- : Particularly when he's dunce enough to call a *system* problem an *IRC*
- : hack.
-
- But one which can be gotten round by hacking the server slightly :-)
-
- assume my_name contains the FQDN if the host the server is running on.
-
- add as a global variable
-
- char *my_domain;
-
- just after ircd.conf is read (cos that's probably where you have got the
- FQDN of the server from)
-
- my_domain=index(my_name,'.');
-
- if the routine to get the host name of the remote connection (read 'rhost'
- as whatever variable the code actually uses)
-
- (if there is something like rhost=hp->host do rhost=strcpy(temp,rhost);
- where temp is a string of size 65, or more)
-
- if (strcmp(rhost,"localhost")) strcpy(rhost,my_name);
- if (!index(rhost,'.')) strcat(rhost,my_domain);
-
- and thats it!
-
-
- --
- -------------------------------------------------------------------------
- Mark Evans |evansmp@uhura.aston.ac.uk
- +(44) 21 429 9199 (Home) |evansmp@cs.aston.ac.uk
- +(44) 21 359 6531 x4039 (Office) |
-