mirror of
https://github.com/luscis/openlan.git
synced 2025-10-21 16:10:05 +08:00
fix: fix qos warn && qos rules redundancy when ip changed (#59)
This commit is contained in:
@@ -129,16 +129,15 @@ func (ru IPRule) Args() []string {
|
||||
if ru.Output != "" {
|
||||
args = append(args, "-o", ru.Output)
|
||||
}
|
||||
if ru.Comment != "" {
|
||||
args = append(args, "-m", "comment", "--comment", ru.Comment)
|
||||
}
|
||||
|
||||
if ru.Limit != "" {
|
||||
args = append(args, "-m", "limit", "--limit", ru.Limit)
|
||||
}
|
||||
if ru.LimitBurst != "" {
|
||||
args = append(args, "--limit-burst", ru.LimitBurst)
|
||||
}
|
||||
if ru.Comment != "" {
|
||||
args = append(args, "-m", "comment", "--comment", ru.Comment)
|
||||
}
|
||||
|
||||
if ru.Jump != "" {
|
||||
jump := strings.ToUpper(ru.Jump)
|
||||
|
Reference in New Issue
Block a user