summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-29 17:03:16 +0000
committernicm <nicm@openbsd.org>2009-07-29 17:03:16 +0000
commitc6fccc31fd8439ec7fb627a92318878790f7cc98 (patch)
tree373e2b6c451b25377a04eee72ef93497f10409b1 /lib
parentRename struct hdrtype to msgtype which is a better name and can be used even (diff)
downloadwireguard-openbsd-c6fccc31fd8439ec7fb627a92318878790f7cc98.tar.xz
wireguard-openbsd-c6fccc31fd8439ec7fb627a92318878790f7cc98.zip
Add an additional heuristic to work out the current session when run from the
command line. The name of all slave ptys in the server is known, so if the client was run on a tty, look for any sessions containing that tty and use the most recently created. This is more reliable than looking at $TMUX if windows have been moved or linked between sessions.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions