X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=config%2Fconfig.go;h=8a0607712b0b6ade5649a4364175c465f038a97a;hb=73164af54a2587ba479b8b133274e3ecd0559a68;hp=5c70bf8adb2fe421cac5794f4ff171b4b03ef503;hpb=54373c1a3efe0e373ec1605840a4363e4b246c46;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", } }