diff options
| author | Loyalsoldier <[email protected]> | 2024-07-06 18:59:43 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2024-07-06 18:59:43 +0800 |
| commit | 8c55b323a91acff7cc7f839a371ec9510fe60039 (patch) | |
| tree | a3d135dfb05b699489c24ea658fdae691ee43f1e /plugin/v2ray | |
| parent | e3800440ce05aa1b8f27d56f47bbeef20f9499c6 (diff) | |
Chore: refine code
Diffstat (limited to 'plugin/v2ray')
| -rw-r--r-- | plugin/v2ray/dat_out.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/v2ray/dat_out.go b/plugin/v2ray/dat_out.go index 345b85ce..46e3baa2 100644 --- a/plugin/v2ray/dat_out.go +++ b/plugin/v2ray/dat_out.go @@ -155,10 +155,10 @@ func (g *geoIPDatOut) Output(container lib.Container) error { } } - // Sort to make reproducible builds - g.sort(geoIPList) - if !g.OneFilePerList && updated { + // Sort to make reproducible builds + g.sort(geoIPList) + geoIPBytes, err := proto.Marshal(geoIPList) if err != nil { return err |
