deon wrote (2021-09-09):
"Perl on_handshake(): @me contains no valid addresses"
+ 08 Sep 09:45:27 [51014] Perl on_handshake(): @me contains no valid
addresses - 08 Sep 09:45:27 [51014] hiding aka 2000:1/2@fakenet
Is this a bug or how do I use @me? The perlhooks documentation says
Are there any addresses left over after hiding some?
That wasn't the problem. It's more weird / unusual behaviour of perl and/or binkd's perlhooks. If I do something like this
sub on_handshake
{
if (0) {
@me = ("4000:1/1@testnet");
}
}
I get the same error. My expectation was that the @me variable is never touched because of the if (0). But for some reason it gets initialized as an empty array, when it appears somewhere in the script. Another example:
sub on_handshake
{
Log(3, "<<< on_handshake() >>>");
}
sub after_handshake
{
Log(3, "<<< after_handshake() >>> @me");
}
+ 08:43 [1459] outgoing session with 127.0.0.1:24554
- 08:43 [1459] <<< on_handshake() >>>
+ 08:43 [1459] Perl on_handshake(): @me contains no valid addresses
- 08:43 [1459] OPT CRAM-MD5-fffdf8c077e8c9b94ce2e83d8da0a8ee
[...]
- 08:43 [1459] session in CRYPT mode
- 08:43 [1459] <<< after_handshake() >>> 2000:1/2@fakenet 4000:1/1@testnet
There is not even a @me in the sub on_handshake().
---
* Origin: 1995| Invention of the Cookie. The End. (21:3/102)