Merge pull request #513 from sidh/issues/495
Fix PreferSimpleProtocol overwrite
This commit is contained in:
@@ -707,7 +707,7 @@ func (old ConnConfig) Merge(other ConnConfig) ConnConfig {
|
|||||||
cc.Dial = other.Dial
|
cc.Dial = other.Dial
|
||||||
}
|
}
|
||||||
|
|
||||||
cc.PreferSimpleProtocol = other.PreferSimpleProtocol
|
cc.PreferSimpleProtocol = old.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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user