MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / feature_status

Function feature_status

sshuttle/client.py:964–974  ·  view source on GitHub ↗
(label, enabled, available)

Source from the content-addressed store, hash-verified

962
963 # display features enabled
964 def feature_status(label, enabled, available):
965 msg = label + ": "
966 if enabled:
967 msg += "on"
968 else:
969 msg += "off "
970 if available:
971 msg += "(available)"
972 else:
973 msg += "(not available with %s method)" % fw.method.name
974 debug1(msg)
975
976 debug1("Method: %s" % fw.method.name)
977 feature_status("IPv4", required.ipv4, avail.ipv4)

Callers 1

mainFunction · 0.85

Calls 1

debug1Function · 0.90

Tested by

no test coverage detected