summaryrefslogtreecommitdiff
path: root/src/config/config_parse.cpp
diff options
context:
space:
mode:
authorlijia <[email protected]>2021-08-09 17:49:02 +0800
committerlijia <[email protected]>2021-08-09 17:49:02 +0800
commit12d35da1beb241ebe2edf473a1a3a6313f0df4f5 (patch)
tree078b54f08817bf8509ebc5211079eff7cf16c07b /src/config/config_parse.cpp
parentb72afadb9f8a4dabb6c4fe7a7273d575196e9be1 (diff)
TSG-7297, 支持插件获取当前的网络拓扑模式, 方便插件在不同模式下, 一些特殊业务的处理。v4.2.45
Diffstat (limited to 'src/config/config_parse.cpp')
-rw-r--r--src/config/config_parse.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp
index a543ef0..c4f3175 100644
--- a/src/config/config_parse.cpp
+++ b/src/config/config_parse.cpp
@@ -1664,6 +1664,9 @@ static int config_expression_convert(void)
if(strncasecmp(tmp_str, "mirror", strlen("mirror")) == 0){
pconfig->packet_io.depolyment_mode_bin = DEPOLYMENT_MODE_MIRROR;
sapp_global_val->individual_fixed.depolyment_mode_private = NET_CONN_PARALLEL;
+ }else if(strncasecmp(tmp_str, "dumpfile", strlen("dumpfile")) == 0){
+ pconfig->packet_io.depolyment_mode_bin = DEPOLYMENT_MODE_MIRROR;
+ sapp_global_val->individual_fixed.depolyment_mode_private = NET_CONN_PARALLEL;
}else if(strncasecmp(tmp_str, "inline", strlen("inline")) == 0){
pconfig->packet_io.depolyment_mode_bin = DEPOLYMENT_MODE_INLINE;
sapp_global_val->individual_fixed.depolyment_mode_private = NET_CONN_SERIAL_GDEV;