Contribution question
"Metzger, Michael" <[email protected]> Wed, 19 Feb 2003 13:17:19 -0600
| Newsgroups | gmane.music.equipment.slimp3.dev |
|---|---|
| Message-ID | <[email protected]> |
------_=_NextPart_001_01C2D84B.859163C0 Content-Type: text/plain; charset="iso-8859-1" Hi All, I've implemented a simple IP based access control scheme into the HTTP and CLI servers. This will initially accept the connection as normal, check the IP against the valid options listed, and either allow the connection to continue accordingly or kill the socket before continuing. This all works fine at this point, but as I've just started hacking on this code, I have a few organizational questions about where to put things: 1) I put the options to enable this feature and the name of the file containing this in Prefs.pm. Is this correct? 2) Considering that this IP check is for both CLI and HTTP, I put the actual parsing/writing (of the allowedhosts file) and validating functions in Misc.pm. Is there a better network-oriented module to put these in? Thanks! Mike Metzger ------_=_NextPart_001_01C2D84B.859163C0 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2>Hi All,</FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2> I've implemented a simple IP based access control scheme into the HTTP and CLI servers. This will initially accept the connection as normal, check the IP against the valid options listed, and either allow the connection to continue accordingly or kill the socket before continuing. This all works fine at this point, but as I've just started hacking on this code, I have a few organizational questions about where to put things:</FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2>1) I put the options to enable this feature and the name of the file containing this in Prefs.pm. Is this correct?</FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2>2) Considering that this IP check is for both CLI and HTTP, I put the actual parsing/writing (of the allowedhosts file) and validating functions in Misc.pm. Is there a better network-oriented module to put these in? </FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2>Thanks!</FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2>Mike Metzger</FONT></SPAN></DIV> <DIV><SPAN class=939275418-19022003><FONT face=Arial size=2></FONT></SPAN> </DIV> <br> <!-- |**|begin egp html banner|**| --> <table border=0 cellspacing=0 cellpadding=2> <tr bgcolor=#FFFFCC> <td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td> </tr> <tr bgcolor=#FFFFFF> <td align=center width=470><table border=0 cellpadding=0 cellspacing=0> <tr> <td align=center><font face=arial size=-2>ADVERTISEMENT</font><br><a href="http://rd.yahoo.com/M=245454.2895241.4313951.2848452/D=egroupweb/S=1708298795:HM/A=1457554/R=0/*http://ipunda.com/clk/beibunmaisuiyuiwabei"><img src="http://us.a1.yimg.com/us.yimg.com/a/qu/quinstreet/uofpoff_300_250_0001.gif" alt="" width="300" height="250" border="0"></a></td></tr></table></td> </tr> <tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=245454.2895241.4313951.2848452/D=egroupmail/S=:HM/A=1457554/rand=264393790"></td></tr> </table> <!-- |**|end egp html banner|**| --> <br> <tt> To unsubscribe from this group, send an email to:<BR> [email protected]<BR> <BR> </tt> <br> <br> <tt>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt> </br> </BODY></HTML> ------_=_NextPart_001_01C2D84B.859163C0--