X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=config%2Fconfig.go;h=8a0607712b0b6ade5649a4364175c465f038a97a;hb=b6fc1cb4e358b34fc57e630d3d491590daf59a5f;hp=5c70bf8adb2fe421cac5794f4ff171b4b03ef503;hpb=f9217417e34d1339099385b68447d851008184f7;p=bytom%2Fvapor.git diff --git a/config/config.go b/config/config.go index 5c70bf8a..8a060771 100644 --- a/config/config.go +++ b/config/config.go @@ -164,6 +164,7 @@ type P2PConfig struct { ProxyUsername string `mapstructure:"proxy_username"` ProxyPassword string `mapstructure:"proxy_password"` KeepDial string `mapstructure:"keep_dial"` + Compression string `mapstructure:"compression_backend"` } // Default configurable p2p parameters. @@ -178,6 +179,7 @@ func DefaultP2PConfig() *P2PConfig { ProxyAddress: "", ProxyUsername: "", ProxyPassword: "", + Compression: "snappy", } }