|
|
Choosing A Webhost: |
SF.net SVN: tmda: [2117] trunk/tmda/bin: msg#00075mail.spam.tmda.cvs
Revision: 2117 http://svn.sourceforge.net/tmda/?rev=2117&view=rev Author: jasonrm Date: 2006-10-29 21:58:42 -0800 (Sun, 29 Oct 2006) Log Message: ----------- On oddly configured systems, sometimes socket.getfqdn() can't determine the FQDN, but socket.gethostname() gets us the hostname, which is better than just 'localhost'. Modified Paths: -------------- trunk/tmda/bin/ChangeLog trunk/tmda/bin/tmda-ofmipd Modified: trunk/tmda/bin/ChangeLog =================================================================== --- trunk/tmda/bin/ChangeLog 2006-10-30 03:07:56 UTC (rev 2116) +++ trunk/tmda/bin/ChangeLog 2006-10-30 05:58:42 UTC (rev 2117) @@ -1,3 +1,8 @@ +2006-10-29 Jason R. Mastaler <jason@xxxxxxxxxxxx> + + * tmda-ofmipd (FQDN): Fall back to gethostname() if getfqdn() only + returns 'localhost'. + 2006-10-13 Jason R. Mastaler <jason@xxxxxxxxxxxx> * tmda-rfilter: Migrate from getopt to optparse. Modified: trunk/tmda/bin/tmda-ofmipd =================================================================== --- trunk/tmda/bin/tmda-ofmipd 2006-10-30 03:07:56 UTC (rev 2116) +++ trunk/tmda/bin/tmda-ofmipd 2006-10-30 05:58:42 UTC (rev 2117) @@ -50,6 +50,8 @@ program = sys.argv[0] FQDN = socket.getfqdn() +if FQDN == 'localhost': + FQDN = socket.gethostname() if os.getuid() == 0: running_as_root = True This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SF.net SVN: tmda: [2116] trunk/tmda, jasonrm |
|---|---|
| Next by Date: | SF.net SVN: tmda: [2118] trunk/tmda/bin/tmda-rfilter, jasonrm |
| Previous by Thread: | SF.net SVN: tmda: [2116] trunk/tmda, jasonrm |
| Next by Thread: | SF.net SVN: tmda: [2118] trunk/tmda/bin/tmda-rfilter, jasonrm |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |