connecting to ADCS hubs shows public tag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LinuxDC++ |
New
|
Undecided
|
Unassigned |
Bug Description
When connecting to ADCS hubs with linuxdcpp 1.1 (debian squeeze) as a registered user( or OP) the tag shows as being in a public hub and changes to private only after 10-15 seconds. In case of a single hub: 1/0/0 to 0/0/1.
This is causing problems in private hubs where no public hubs are tolerated and it makes login impossible when the check is performed during login.
This is regardless of the actual hubsoft, tested luadch, flexhub adchpp in the queue.
Logs from flexhub feed:
[13:13] <HUBSEC> [LOGIN] [A] [LAJ] [2] IP: xx.xx.xx.xx <nick unknown> HSUP OK.
[13:13] <HUBSEC> [FI] [0] Monitored nick is connecting... all traffic outputs to: Feed
[13:13] <HUBSEC> [LOGIN] [A] [LAJ] [4] IP: xx.xx.xx.xx <@ldcpp> BINF OK.
[13:13] <HUBSEC> [Monitoring <xx.xx.xx.xx>] [RCV] HPAS CID
[13:13] <HUBSEC> [X] [0] [Redirect] [GetAddress] Request: maxhubs / Path: USED:true LIST:Fix.
[13:13] <HUBSEC> [FI] [1] [Redirect] maxhubsIP: xx.xx.xx.xx <@ldcpp> was redirected to: Fix.your.
the new hub is counted too soon.
a possible fix for this would be when own INF is constructed and sent at AdcHub.cpp :
void AdcHub::info(bool /*alwaysSend*/)
line 499: false);
if (state == STATE_NORMAL)
updateCounts(