mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-15 16:04:08 +02:00
allow custom chain name targets
This commit is contained in:
@@ -222,10 +222,6 @@ func parseChainRuleField(fieldIndex int, field string, rule *chainRule) (err err
|
|||||||
return fmt.Errorf("parsing bytes: %w", err)
|
return fmt.Errorf("parsing bytes: %w", err)
|
||||||
}
|
}
|
||||||
case targetIndex:
|
case targetIndex:
|
||||||
err = checkTarget(field)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("checking target: %w", err)
|
|
||||||
}
|
|
||||||
rule.target = field
|
rule.target = field
|
||||||
case protocolIndex:
|
case protocolIndex:
|
||||||
rule.protocol, err = parseProtocol(field)
|
rule.protocol, err = parseProtocol(field)
|
||||||
|
|||||||
Reference in New Issue
Block a user