diff options
Diffstat (limited to 'plugin/plaintext/clash_out.go')
| -rw-r--r-- | plugin/plaintext/clash_out.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/plaintext/clash_out.go b/plugin/plaintext/clash_out.go index e7a97f1b..06dffa04 100644 --- a/plugin/plaintext/clash_out.go +++ b/plugin/plaintext/clash_out.go @@ -21,16 +21,16 @@ const ( func init() { lib.RegisterOutputConfigCreator(TypeClashRuleSetClassicalOut, func(action lib.Action, data json.RawMessage) (lib.OutputConverter, error) { - return newTextOut(TypeClashRuleSetClassicalOut, DescClashRuleSetClassicalOut, action, data) + return NewTextOutFromBytes(TypeClashRuleSetClassicalOut, DescClashRuleSetClassicalOut, action, data) }) - lib.RegisterOutputConverter(TypeClashRuleSetClassicalOut, &TextOut{ + lib.RegisterOutputConverter(TypeClashRuleSetClassicalOut, &textOut{ Description: DescClashRuleSetClassicalOut, }) lib.RegisterOutputConfigCreator(TypeClashRuleSetIPCIDROut, func(action lib.Action, data json.RawMessage) (lib.OutputConverter, error) { - return newTextOut(TypeClashRuleSetIPCIDROut, DescClashRuleSetIPCIDROut, action, data) + return NewTextOutFromBytes(TypeClashRuleSetIPCIDROut, DescClashRuleSetIPCIDROut, action, data) }) - lib.RegisterOutputConverter(TypeClashRuleSetIPCIDROut, &TextOut{ + lib.RegisterOutputConverter(TypeClashRuleSetIPCIDROut, &textOut{ Description: DescClashRuleSetIPCIDROut, }) } |
