HELP! ;)
I'm trying to use the @me array in on_handshake(), but no matter what
I do I always get the error:
"Perl on_handshake(): @me contains no valid addresses"
even with this simple sub:
sub on_handshake
{
@me;
}
HELP! ;)
I'm trying to use the @me array in on_handshake(), but no matter
what I do I always get the error:
"Perl on_handshake(): @me contains no valid addresses"
even with this simple sub:
sub on_handshake
{
@me;
}
I've never used this hook but as far as I understand you have to put the AKAs you want to present to the @me array. The array in your sub contains no addresses, so you receive the error message.
Hello Oli,
Wednesday September 08 2021, Oli wrote to All:
HELP! ;)
I'm trying to use the @me array in on_handshake(), but no matter
what I do I always get the error:
"Perl on_handshake(): @me contains no valid addresses"
even with this simple sub:
sub on_handshake
{
@me;
}
I've never used this hook but as far as I understand you have to put the AKAs you want to present to the @me array. The array in your sub contains no addresses, so you receive the error message.
HELP! ;)
I'm trying to use the @me array in on_handshake(), but no matter
what I do I always get the error:
"Perl on_handshake(): @me contains no valid addresses"
even with this simple sub:
sub on_handshake
{
@me;
}
I've never used this hook but as far as I understand you have to
put the AKAs you want to present to the @me array. The array in
your sub contains no addresses, so you receive the error message.
The side effects are a bit confusing:
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
I'm not sure if this is considered to be expected behavior or a bug?
The side effects are a bit confusing:
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
I'm not sure if this is considered to be expected behavior or a
bug?
Well, from my POV the binkd behavior looks logical here. If you specified the values of the @me array, then only the AKA specified in that array would be presented. Since you did not specify any values in @me, binkd presented all of your AKAs during the handshake. In after_handshake() hook, you see the AKAs that were presented during the handshake.
"Perl on_handshake(): @me contains no valid addresses" is here rather not an error message but a warning.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 32:43:55 |
Calls: | 141 |
Files: | 5,058 |
Messages: | 220,694 |