[refactor] use /var/run for osx helper socket

parent d62ea76c
......@@ -44,7 +44,7 @@ To see the loaded rules:
To test the commands, you can write directly to the unix socket. Remember to
terminate the command properly:
echo 'firewall_stop/CMD' | socat - UNIX-CONNECT:/tmp/bitmask-helper.socket
echo 'firewall_stop/CMD' | socat - UNIX-CONNECT:/var/run/bitmask-helper.socket
"""
import os
......@@ -122,7 +122,7 @@ GREP = '/usr/bin/grep'
CAT = '/bin/cat'
UID = os.getuid()
SERVER_ADDRESS = '/tmp/bitmask-helper.socket'
SERVER_ADDRESS = '/var/run/bitmask-helper.socket'
#
......
......@@ -33,7 +33,7 @@ logger = Logger()
class HelperCommand(object):
SOCKET_ADDR = '/tmp/bitmask-helper.socket'
SOCKET_ADDR = '/var/run/bitmask-helper.socket'
def __init__(self):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment