Merge pull request #436 from ikitiki/fix-config-merge
Mind PreferSimpleProtocol parameter in the config Merge method
This commit is contained in:
@@ -706,6 +706,8 @@ func (old ConnConfig) Merge(other ConnConfig) ConnConfig {
|
|||||||
cc.Dial = other.Dial
|
cc.Dial = other.Dial
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc.PreferSimpleProtocol = other.PreferSimpleProtocol
|
||||||
|
|
||||||
cc.RuntimeParams = make(map[string]string)
|
cc.RuntimeParams = make(map[string]string)
|
||||||
for k, v := range old.RuntimeParams {
|
for k, v := range old.RuntimeParams {
|
||||||
cc.RuntimeParams[k] = v
|
cc.RuntimeParams[k] = v
|
||||||
|
|||||||
Reference in New Issue
Block a user