diff options
| author | Loyalsoldier <[email protected]> | 2026-03-09 14:16:56 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2026-04-29 00:34:36 +0800 |
| commit | 4f125e579472e5ed87fd052ef68ab80f5fe679b0 (patch) | |
| tree | 4ff9206e5b89f0a5f30db30821df47b79cc0aa5f /lookup.go | |
| parent | 1c3a808e7091e1358eec7d3d844b4c7342859558 (diff) | |
Refactor: plugin uses option patternrefactor-plugin
Diffstat (limited to 'lookup.go')
| -rw-r--r-- | lookup.go | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -197,14 +197,11 @@ func getInputForLookup(format, name, uri, dir string) lib.InputConverter { } case strings.ToLower(singbox.TypeSRSIn): - input = &singbox.SRSIn{ - Type: singbox.TypeSRSIn, - Action: lib.ActionAdd, - Description: singbox.DescSRSIn, - Name: name, - URI: uri, - InputDir: dir, - } + input = singbox.NewSRSIn( + lib.ActionAdd, + singbox.WithNameAndURI(name, uri), + singbox.WithInputDir(dir), + ) case strings.ToLower(v2ray.TypeGeoIPDatIn): input = &v2ray.GeoIPDatIn{ |
