direct-connect / go-dcpp

Hybrid Direct Connect hub written in Go.
BSD 3-Clause "New" or "Revised" License
36 stars 9 forks source link

Pinging GoHub using nmdc scheme returns "unexpected EOF" #97

Closed Kcchouette closed 4 years ago

Kcchouette commented 5 years ago
$ dcping ping "gohub.exua.org:1411"
{"name":"..GoHub.Exua.org..","desc":"Hybrid Hub adc|adcs|nmdc|nmdcs \u003e\u003e Use adcs://gohub.exua.org:1411 for TLS encoding.","addr":["adcs://gohub.exua.org:1411"],"encoding":"utf-8","soft":{"name":"GoHub","vers":"0.20.1","ext":["BASE","BAS0","TIGR","PING","UCMD","UCM0","ZLIF"]},"users":10,"share":2546997419836}
$ dcping ping "dchub://gohub.exua.org:1411"
2019/05/08 11:18:26 unexpected EOF
{"name":"..GoHub.Exua.org..","desc":"Hybrid Hub adc|adcs|nmdc|nmdcs \u003e\u003e Use adcs://gohub.exua.org:1411 for TLS encoding.","addr":["dchub://gohub.exua.org:1411"],"encoding":"utf-8","soft":{"name":"GoHub","vers":"0.20.1","ext":["BotINFO","BotList","NoGetINFO","NoHello","TTHS","TTHSearch","UserCommand","UserIP2","ZPipe0"]},"users":10,"share":2546997419836,"status":"error"}
$ dcping ping "nmdcs://gohub.exua.org:1411"
2019/05/08 11:20:14 unexpected EOF
{"name":"..GoHub.Exua.org..","desc":"Hybrid Hub adc|adcs|nmdc|nmdcs \u003e\u003e Use adcs://gohub.exua.org:1411 for TLS encoding.","addr":["nmdcs://gohub.exua.org:1411","dchub://gohub.exua.org:1411"],"encoding":"utf-8","soft":{"name":"GoHub","vers":"0.20.1","ext":["BotINFO","BotList","NoGetINFO","NoHello","TTHS","TTHSearch","UserCommand","UserIP2","ZPipe0"]},"users":10,"share":2546997419836,"status":"error"}
$ dcping ping "adc://gohub.exua.org:1411"
{"name":"..GoHub.Exua.org..","desc":"Hybrid Hub adc|adcs|nmdc|nmdcs \u003e\u003e Use adcs://gohub.exua.org:1411 for TLS encoding.","addr":["adc://gohub.exua.org:1411"],"encoding":"utf-8","soft":{"name":"GoHub","vers":"0.20.1","ext":["ZLIF","BASE","BAS0","TIGR","PING","UCMD","UCM0"]},"users":10,"share":2546997419836}
$ dcping ping "adcs://gohub.exua.org:1411"
{"name":"..GoHub.Exua.org..","desc":"Hybrid Hub adc|adcs|nmdc|nmdcs \u003e\u003e Use adcs://gohub.exua.org:1411 for TLS encoding.","addr":["adcs://gohub.exua.org:1411"],"encoding":"utf-8","soft":{"name":"GoHub","vers":"0.20.1","ext":["BAS0","TIGR","PING","UCMD","UCM0","ZLIF","BASE"]},"users":10,"share":2546997419836}
dennwc commented 4 years ago

Turned out it is hub's fault. New hubs will ping correctly.