Zhiyong(Johnny) Zhao
4123411ecb
fix: delete write permission validation for files when self-update
2023-09-29 13:01:48 -04:00
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
oldshensheep
f91569c506
fix: panic when config dir access denied
2023-09-19 20:42:03 +08:00
zu1k
6462935b1b
chore: make code scanning happy
2023-08-24 11:10:52 +08:00
zu1k
07409ff628
chore: fmt code & upgrade deps
2023-08-24 10:32:56 +08:00
M09Ic
904c57efa9
move Result struct to type.go
2023-05-21 14:45:37 +08:00
M09Ic
97cde2aa94
Fix the bug of json nested error
2023-05-20 18:12:31 +08:00
M09Ic
3819ae6808
Add the source field to the json output.
2023-05-20 17:53:43 +08:00
M09Ic
d6d26f71f8
Fix the difference in output between stdin and cmd input.
2023-05-20 17:24:50 +08:00
Jason_R4bb1t
ff1449a4d1
add flag -j/--json. json format output.
2023-05-20 17:23:31 +08:00
oldshensheep
748c5cf4a8
fix crash and fix migration qqwry #161 ( #162 )
...
* fix crash #161
* fix migration qqwry
2023-05-01 20:53:49 +08:00
zu1k
de355d1f7a
fix: Update qqwry download url
2023-04-24 16:39:25 +08:00
zu1k
25b0af0632
fix: auto migrate download link
2023-02-04 10:39:09 +08:00
zu1k
8aebd93126
fix : #155
2023-01-08 09:55:06 +08:00
zu1k
b29ad6fb56
chore: format
2022-10-24 09:53:42 +08:00
zu1k
b0bd2771d6
feat: check db data after download
2022-10-24 09:51:19 +08:00
zu1k
0631804e00
fix: migration move db to data dir
...
Signed-off-by: zu1k <i@zu1k.com>
2022-10-06 13:09:41 +08:00
zu1k
5039161a5c
fix: migration find old dir path
...
Signed-off-by: zu1k <i@zu1k.com>
2022-10-06 13:05:35 +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
henry
45953fcac5
fix concurrent map write
2022-07-28 09:53:59 +08:00
zu1k
faf39c246f
Remove deprecated code
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-21 14:11:27 +08:00
zu1k
40e1623c4b
fix: gen nil config file
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-21 10:53:26 +08:00
zu1k
c2a1ad8565
chore: Update qqwry.date download url
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-21 10:36:47 +08:00
zu1k
8e280304bb
feat: Add migration
...
Signed-off-by: zu1k <i@zu1k.com>
2022-07-06 09:01:29 +08:00
zu1k
4599c0593a
chore: Add Aur release action:
...
Signed-off-by: zu1k <i@zu1k.com>
2022-06-29 22:15:58 +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
f391935999
feat: Support update db by direct download
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-24 15:16:48 +08:00
zu1k
4482839a05
fix: ip2location language only support en
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-17 13:50:30 +08:00
zu1k
44606cde27
docs: Update readme zh
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-17 13:35:48 +08:00
fengdelan
31fe43c46a
Added support for IP2Location DB3 LITE
2022-05-17 11:22:30 +08:00
zu1k
a92f6ff718
chore: Update readme
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-09 15:17:11 +08:00
zu1k
c0643f7731
feat: Database from config
...
Signed-off-by: zu1k <i@zu1k.com>
2022-05-09 14:48:28 +08:00
biwenliang
303e23590a
feat: make update module flex
2022-05-05 11:49:11 +08:00
zu1k
fe447a34f8
chore: Update cdn database url
...
Signed-off-by: zu1k <i@zu1k.com>
2022-04-03 17:25:55 +08:00
zu1k
6bc863cc69
refactor: project structure
...
Signed-off-by: zu1k <i@lgf.im>
2022-03-02 12:43:41 +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
zpcc
75d8173f77
fix color print in cmd.exe ( #78 )
2022-02-08 18:01:55 +08:00
zu1k
57ecaa8591
fix ipv4 in ipv6 parse
...
Signed-off-by: zu1k <i@lgf.im>
2021-12-17 13:31:08 +08:00
zu1k
4e22a5cf2b
fix: Match IPv4 in IPv6 #70
...
Signed-off-by: zu1k <i@lgf.im>
2021-12-16 13:01:32 +08:00
zu1k
e4b0253ec6
fix: Trim result
2021-10-26 13:23:05 +08:00
zu1k
8e87230fa8
fix: Prevent domain name matching IP #64
2021-10-26 13:17:33 +08:00
zu1k
ebb97d662c
fix: ipv6 geoip init
2021-08-12 06:14:27 +08:00
zu1k
bf5c917155
update deps
2021-08-11 17:54:10 +08:00
zu1k
6b76f4a50b
feat: support db select
2021-08-11 10:02:54 +08:00
zu1k
2d99679810
fix entity parse
2021-08-03 08:33:26 +08:00