summaryrefslogtreecommitdiff
path: root/lookup.go
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2026-03-09 14:16:56 +0800
committerLoyalsoldier <[email protected]>2026-04-29 00:34:36 +0800
commit4f125e579472e5ed87fd052ef68ab80f5fe679b0 (patch)
tree4ff9206e5b89f0a5f30db30821df47b79cc0aa5f /lookup.go
parent1c3a808e7091e1358eec7d3d844b4c7342859558 (diff)
Refactor: plugin uses option patternrefactor-plugin
Diffstat (limited to 'lookup.go')
-rw-r--r--lookup.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/lookup.go b/lookup.go
index 15ffd3e9..9261d944 100644
--- a/lookup.go
+++ b/lookup.go
@@ -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{