feat(protocol): allow override of dial func
This commit is contained in:
@ -6,6 +6,7 @@ func init() {
|
||||
protocol.Register(Identifier, func(opts *protocol.ProtocolOptions) (protocol.Protocol, error) {
|
||||
return &Protocol{
|
||||
logger: opts.Logger,
|
||||
dial: opts.Dial,
|
||||
}, nil
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user