When stopping an onion, dont even try if --local-only

This commit is contained in:
Micah Lee 2020-08-21 19:14:40 -04:00
parent 4c6237440a
commit d91da6fa77

View file

@ -665,6 +665,7 @@ class Onion(object):
Stop a specific onion service Stop a specific onion service
""" """
onion_host = mode_settings.get("general", "service_id") onion_host = mode_settings.get("general", "service_id")
if onion_host:
self.common.log("Onion", "stop_onion_service", f"onion host: {onion_host}") self.common.log("Onion", "stop_onion_service", f"onion host: {onion_host}")
try: try:
self.c.remove_ephemeral_hidden_service( self.c.remove_ephemeral_hidden_service(