diff --git a/python/online/fxreader/pr34/commands.py b/python/online/fxreader/pr34/commands.py index ac10bf0..3ddc74a 100644 --- a/python/online/fxreader/pr34/commands.py +++ b/python/online/fxreader/pr34/commands.py @@ -1158,6 +1158,7 @@ done' ) def http_server(argv): + from .commands_typed import os as commands_os assert isinstance(argv, list) and all([isinstance(o, str) for o in argv]) parser = optparse.OptionParser() parser.add_option( @@ -1215,10 +1216,17 @@ def http_server(argv): try: assert not socket.inet_aton(options.host) is None - subprocess.check_call([ - 'ping', '-w', '1', - options.host - ]) + # subprocess.check_call([ + # 'ping', '-w', '1', + # options.host + # ]) + assert options.host in sum([ + [ + o2.local + for o2 in o.addr_info + ] + for o in commands_os.interfaces_index() + ], []) except Exception: raise RuntimeError('invalid ip address %s' % options.host) diff --git a/python/pyproject.toml b/python/pyproject.toml index 835d2fe..6c471a1 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'online.fxreader.pr34' -version = '0.1.5.9+27.1' +version = '0.1.5.9+27.2' dependencies = [ #"-r requirements.txt", diff --git a/releases/whl/online_fxreader_pr34-0.1.5.9+27.2-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.5.9+27.2-py3-none-any.whl new file mode 100644 index 0000000..1facb36 --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.5.9+27.2-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eefcb7da4191f1b10128201346c09db768692a1f29d3f64a7f19d1440799b279 +size 69753