mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-24 17:04:36 +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 os
|
||||
import sys
|
||||
import tempfile
|
||||
import platform
|
||||
|
||||
import subprocess as ssubprocess
|
||||
@ -13,7 +14,7 @@ from sshuttle.helpers import log, debug1, debug2, debug3
|
||||
|
||||
POLL_TIME = 60 * 15
|
||||
NETSTAT_POLL_TIME = 30
|
||||
CACHEFILE = os.path.expanduser('~/.sshuttle.hosts')
|
||||
CACHEFILE = os.path.join(tempfile.gettempdir(), '.sshuttle.hosts.' + str(os.getuid()))
|
||||
|
||||
|
||||
_nmb_ok = True
|
||||
|
Loading…
Reference in New Issue
Block a user