chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
server/peer.c, etc.: Introduce who-goes-there protocol.
[tripe]
/
svc
/
connect.in
diff --git
a/svc/connect.in
b/svc/connect.in
index fa5a22c21f32035a308b264e0677aacdac6984d3..9bb582cb706bb88a90e064f0edb8bc71b8ace047 100644
(file)
--- a/
svc/connect.in
+++ b/
svc/connect.in
@@
-778,6
+778,10
@@
def notify(_, code, *rest):
try: p = Peer(rest[0])
except KeyError: pass
else: disownpeer(p, *rest[1:])
+ elif code == 'WGT':
+ try: p = pinger.find(rest[0])
+ except KeyError: pass
+ else: p.reconnect()
elif code == 'GREET':
chal = rest[0]
try: cr = chalmap[chal]