Zhiyong(Johnny) Zhao
f2bec94681
fix: fix self-update bugs
...
1. added -v for update command, only update binary when -v is assigned;
2. removed the reference to semver library, implemented repo version compare functions;
3. edited release-aur-git rule in go.yml, won't replace the hyphen to dot in release version;
2023-09-28 16:31:29 -04:00
Zhiyong(Johnny) Zhao
43a308056f
feat: implement self-update for nali ( #177 )
2023-09-28 22:41:43 +08:00
zu1k
07409ff628
chore: fmt code & upgrade deps
2023-08-24 10:32:56 +08:00
Jason_R4bb1t
ff1449a4d1
add flag -j/--json. json format output.
2023-05-20 17:23:31 +08:00
zu1k
de355d1f7a
fix: Update qqwry download url
2023-04-24 16:39:25 +08:00
zu1k
7c2d9e1dd7
feat: optimize using [2]int
2023-03-02 16:53:50 +08:00
zu1k
e196c6834f
chore: update deps
2023-02-04 10:24:12 +08:00
zu1k
a77165b014
chore: update qqwry download link
2023-01-08 09:30:59 +08:00
zu1k
2da7512590
deps: update deps
2022-10-20 16:00:58 +08:00
zu1k
3efa0d139c
Bump version to 0.6.0
2022-10-17 15:01:34 +08:00
zu1k
462503377c
feat: auto migrate to new dir
...
Signed-off-by: zu1k <i@zu1k.com>
2022-10-06 11:23:27 +08:00
zu1k
0062ad914e
change default dataDir and configDir
...
https://github.com/adrg/xdg
Signed-off-by: zu1k <i@zu1k.com>
2022-10-05 22:16:55 +08:00
zu1k
e1af0bc383
feat: get ConfigDir and DataDir path from XDG env
...
Signed-off-by: zu1k <i@zu1k.com>
2022-10-05 21:58:27 +08:00
zu1k
ed0fe1d8ed
deps: update deps
...
Signed-off-by: zu1k <i@zu1k.com>
2022-08-15 09:31:21 +08:00
zu1k
4cffde1e3e
chore: Update deps & publish to aur-git only when push
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-28 12:42:35 +08:00
zu1k
d37da69c0f
chore: Update deps
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-21 10:55:20 +08:00
zu1k
8e280304bb
feat: Add migration
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-06 09:01:29 +08:00
zu1k
2f1d16408c
fix: common download save to file
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-04 22:01:03 +08:00
zu1k
6bf5d94920
fix: CDN support regex
...
Signed-off-by: zu1k <i@zu1k.com>
2022-06-29 17:00:34 +08:00
zu1k
673e5f4ef7
feat: Support ip2region xdb
...
Signed-off-by: zu1k <i@zu1k.com>
2022-06-27 17:03:09 +08:00
zu1k
b03c052705
Add qqwry update notice
...
Signed-off-by: zu1k <i@zu1k.com>
2022-06-17 13:19:53 +08:00
zu1k
74a3198533
deps: Use some deops
...
Signed-off-by: zu1k <i@zu1k.com>
2022-06-10 18:59:50 +08:00
zu1k
de5a8f2530
deps: Update yaml to v3
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-26 15:38:47 +08:00
fengdelan
31fe43c46a
Added support for IP2Location DB3 LITE
2022-05-17 11:22:30 +08:00
zu1k
c0643f7731
feat: Database from config
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-09 14:48:28 +08:00
zu1k
fe9b941746
fix: ZXIPv6 database download #91
2022-04-10 20:19:07 +08:00
zu1k
cf206dcc14
fix: CDN struct tag
...
Signed-off-by: zu1k <i@zu1k.com>
2022-04-03 17:58:26 +08:00
zu1k
fe447a34f8
chore: Update cdn database url
...
Signed-off-by: zu1k <i@zu1k.com>
2022-04-03 17:25:55 +08:00
dependabot[bot]
daa93a0006
chore(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0 ( #87 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/v1.4.0/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-26 09:54:42 +08:00
zu1k
d1b584c3e7
refactor: better download and error handle
...
Signed-off-by: zu1k <i@lgf.im>
2022-03-02 12:34:11 +08:00
zu1k
b21c9b6728
feat: Support ip2region
...
Signed-off-by: zu1k <i@lgf.im>
2022-02-20 11:28:25 +08:00
zu1k
1e116c8e70
chore: Update deps
...
Signed-off-by: zu1k <i@lgf.im>
2021-12-16 12:12:46 +08:00
zu1k
17839a6974
chore: Update dependences
2021-10-26 13:20:09 +08:00
zu1k
8e87230fa8
fix: Prevent domain name matching IP #64
2021-10-26 13:17:33 +08:00
zu1k
bf5c917155
update deps
2021-08-11 17:54:10 +08:00
zu1k
592a2eabb5
color print
2021-08-03 07:54:35 +08:00
zu1k
a788bf35bb
update deps
2021-07-30 20:23:44 +08:00
dependabot[bot]
6d669ba733
Bump github.com/spf13/cobra from 1.1.3 to 1.2.1 ( #54 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.3 to 1.2.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.3...v1.2.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 19:25:56 +08:00
dependabot[bot]
c57ead2281
Bump golang.org/x/text from 0.3.5 to 0.3.6 ( #41 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.5...v0.3.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 12:45:46 +08:00
dependabot[bot]
8319d3591d
Bump github.com/oschwald/geoip2-golang from 1.4.0 to 1.5.0 ( #39 )
...
Bumps [github.com/oschwald/geoip2-golang](https://github.com/oschwald/geoip2-golang ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/oschwald/geoip2-golang/releases )
- [Commits](https://github.com/oschwald/geoip2-golang/compare/v1.4.0...v1.5.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-23 11:01:38 +08:00
dependabot[bot]
3dda35a92f
Bump github.com/spf13/cobra from 1.1.1 to 1.1.3 ( #38 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-21 08:24:19 +08:00
dependabot[bot]
a1795174d2
Bump golang.org/x/text from 0.3.4 to 0.3.5
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.4...v0.3.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-15 18:07:58 +08:00
dependabot[bot]
44f662e326
Bump github.com/ipipdotnet/ipdb-go from 1.3.0 to 1.3.1
...
Bumps [github.com/ipipdotnet/ipdb-go](https://github.com/ipipdotnet/ipdb-go ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/ipipdotnet/ipdb-go/releases )
- [Commits](https://github.com/ipipdotnet/ipdb-go/compare/v1.3.0...v1.3.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-11-10 05:57:24 +00:00
dependabot[bot]
a8065e5e92
Bump golang.org/x/text from 0.3.3 to 0.3.4
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.3...v0.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-10-28 06:05:52 +00:00
dependabot[bot]
a90787b14e
Bump github.com/spf13/cobra from 1.1.0 to 1.1.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.0...v1.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-10-19 06:36:12 +00:00
dependabot[bot]
7c790023e9
Bump github.com/spf13/cobra from 1.0.0 to 1.1.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.0.0...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-10-15 05:58:43 +00:00
zu1k
363537c652
add ipip db support
2020-07-21 06:19:52 +08:00
zu1k
0e0df1396d
add zx ipv6 db download
2020-07-20 20:31:12 +08:00
zu1k
130e6dafe7
update readme
2020-07-17 13:26:26 +08:00
zu1k
b71b39f1f0
move db to ~/.nali
2020-07-17 09:41:09 +08:00