summaryrefslogtreecommitdiff
path: root/lookup.go
diff options
context:
space:
mode:
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{