mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-20 12:22:56 +01:00
Allow swtiching hostwatch cache file via $TMPDIR
This commit is contained in:
parent
4372c6c117
commit
581c1ae92e
@ -5,6 +5,7 @@ import select
|
|||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import tempfile
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
import subprocess as ssubprocess
|
import subprocess as ssubprocess
|
||||||
@ -13,7 +14,7 @@ from sshuttle.helpers import log, debug1, debug2, debug3
|
|||||||
|
|
||||||
POLL_TIME = 60 * 15
|
POLL_TIME = 60 * 15
|
||||||
NETSTAT_POLL_TIME = 30
|
NETSTAT_POLL_TIME = 30
|
||||||
CACHEFILE = os.path.expanduser('~/.sshuttle.hosts')
|
CACHEFILE = os.path.join(tempfile.gettempdir(), '.sshuttle.hosts.' + str(os.getuid()))
|
||||||
|
|
||||||
|
|
||||||
_nmb_ok = True
|
_nmb_ok = True
|
||||||
|
Loading…
Reference in New Issue
Block a user