[IMP] tools: added disclaimer on detect_ip_addr

bzr revid: odo@openerp.com-20100622154500-lsoxuy0cz1p05lrb
This commit is contained in:
Olivier Dony 2010-06-22 17:45:00 +02:00
parent a01b658d8d
commit 8f841dc233
1 changed files with 5 additions and 0 deletions

View File

@ -1159,6 +1159,11 @@ def extract_zip_file(zip_file, outdirectory):
zf.close()
def detect_ip_addr():
"""Try a very crude method to figure out a valid external
IP or hostname for the current machine. Don't rely on this
for binding to an interface, but it could be used as basis
for constructing a remote URL to the server.
"""
def _detect_ip_addr():
from array import array
import socket