diff options
Diffstat (limited to 'shaping/src/shaper.cpp')
| -rw-r--r-- | shaping/src/shaper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shaping/src/shaper.cpp b/shaping/src/shaper.cpp index 5a53232..6ea2afe 100644 --- a/shaping/src/shaper.cpp +++ b/shaping/src/shaper.cpp @@ -729,8 +729,11 @@ static int shaper_token_consume(struct shaping_thread_ctx *ctx, struct shaping_f } struct shaping_rule_info *rule = &sf->matched_rule_infos[sf->anchor]; + if (rule->has_dup_profile) { + return SHAPER_TOKEN_GET_PASS;//dup profile, don't need to get token and forward packet + } + time_t curr_time = time(NULL); - if (curr_time - sf->check_rule_time >= ctx->conf.check_rule_enable_interval_sec) { sf->check_rule_time = curr_time; if (shaper_rule_is_enabled(ctx, rule->id) != 1) { |
