add mounted protos to identify message (#546)

This commit is contained in:
Dmitriy Ryajov 2021-03-15 15:29:05 -06:00
parent a8d161bc9a
commit 6b1fd79556
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -132,6 +132,7 @@ proc mount*[T: LPProtocol](s: Switch, proto: T, matcher: Matcher = nil) {.gcsafe
"Protocol has to define a codec string")
s.ms.addHandler(proto.codecs, proto, matcher)
s.peerInfo.protocols.add(proto.codec)
proc upgradeMonitor(conn: Connection, upgrades: AsyncSemaphore) {.async.} =
## monitor connection for upgrades