Subj : Rejecting an incoming connection
To : Paul Hayton
From : Oli
Date : Thu May 20 2021 12:52 pm
Paul wrote (2021-05-20):
PH> I'm looking for a way for BinkD to reject the incoming connection based on
PH> something like SYS or ZYZ info presented. Is such a thing possible using a
PH> perl script or similar?
PH> Note I am not a perl guru so any suggested fix you have I'd appreciate a
PH> bit of hand holding to implement it.
There is some documentation in doc/perlhooks.txt
I think it should be possible to abort the session:
6) after_handshake()
- called after complete login information transferred
- defined vars: session level 2
- return non-empty string to abort session with that reason
Session Data
This variables are set for session hooks depending of their availability:
1 2 3 <- session vars level (see hooks description)
$sysname + + remote system name
$sysop + + remote sysop