From 29c674fdfffc9fba867d6aebfa647233e1fff8f7 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 16 七月 2024 20:15:55 +0800 Subject: [PATCH] 禁用服务端的keepalive --- config/config.go | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config/config.go b/config/config.go index 880e41e..aa34146 100644 --- a/config/config.go +++ b/config/config.go @@ -9,14 +9,15 @@ ) type serve struct { - ID string `mapstructure:"id"` - Mode string `mapstructure:"mode"` - Host string `mapstructure:"host"` - Port string `mapstructure:"port"` - Realm string `mapstructure:"realm"` - Username string `mapstructure:"username"` - Password string `mapstructure:"password"` - Role string `mapstructure:"role"` // agent 璁惧绔�, proxy 1400涓浆 涓嶅鐞哾eivce, server 鍏ㄥ姛鑳� + ID string `mapstructure:"id"` + Mode string `mapstructure:"mode"` + Host string `mapstructure:"host"` + Port string `mapstructure:"port"` + Realm string `mapstructure:"realm"` + Username string `mapstructure:"username"` + Password string `mapstructure:"password"` + Role string `mapstructure:"role"` // agent 璁惧绔�, proxy 1400涓浆 涓嶅鐞哾eivce, server 鍏ㄥ姛鑳� + Keepalive bool `mapstructure:"keepalive"` } type client struct { @@ -48,6 +49,7 @@ ReportInterval int `mapstructure:"report-interval"` RetryInterval int `mapstructure:"retry-interval"` Enable bool `mapstructure:"enable"` + FTPServer string `mapstructure:"ftp-server"` } type image struct { -- Gitblit v1.8.0