Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help wanted] nali will destroy mtr output format #85

Closed
zazitufu opened this issue Mar 3, 2022 · 9 comments
Closed

[help wanted] nali will destroy mtr output format #85

zazitufu opened this issue Mar 3, 2022 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@zazitufu
Copy link

zazitufu commented Mar 3, 2022

✘ ⚡ root@tx-HK-Debian10  /aabin  nali --version       
nali version 0.3.7

 ? root@tx-HK-Debian10 ? /aabin ? lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster


 ⚡ root@tx-HK-Debian10  /aabin  mtr baidu.com |nali

结果出现排版很多错位的
image

如果不用nali,mtr同一个,如下图
image

@zu1k
Copy link
Owner

zu1k commented Mar 3, 2022

#12

@zu1k zu1k closed this as completed Mar 3, 2022
@zazitufu
Copy link
Author

zazitufu commented Mar 7, 2022

image

nali-cli (Nali CLI) v2.0.0
这个不会造成MTR错位。能否参考以下

@zu1k zu1k reopened this Mar 8, 2022
@zu1k zu1k added the help wanted Extra attention is needed label Mar 8, 2022
@zu1k
Copy link
Owner

zu1k commented Mar 8, 2022

I still can not solve this problem, if anyone has a method, welcome PR.

@zu1k zu1k changed the title 0.3.7 使用管道后,出现挺多错位的现象。 [help wanted] nali will destroy mtr output format Mar 13, 2022
@zazitufu
Copy link
Author

zazitufu commented Apr 6, 2022

hello,今天看到有0.3.8的版本,就试了一下。ping 加管道可以有输出,但是MTR 加管道变得没有输出了。过了大概一分多钟就自动返回命令行界面。而且 执行 nali -v 显示版本会有换行,第二行行头有空格,行尾有个 # 符号。
image

@zazitufu
Copy link
Author

hello,今天看到v0.3.9,使用了一下,还是一样的故障,mtr没有输出。
image

@zu1k
Copy link
Owner

zu1k commented Apr 12, 2022

mtr默认用的tui,没办法用nali,除非你用mtr的其他输出模式

@zu1k
Copy link
Owner

zu1k commented Apr 12, 2022

不光是 nali, 你可以试试最常用的 grep 命令

@zazitufu
Copy link
Author

不光是 nali, 你可以试试最常用的 grep 命令

但是0.3.7的时候是可以用的啊,看我在本issue最前面发的图,虽然当时mtr用的时候会有排版错位。

@zu1k
Copy link
Owner

zu1k commented Apr 14, 2022

不光是 nali, 你可以试试最常用的 grep 命令

但是0.3.7的时候是可以用的啊,看我在本issue最前面发的图,虽然当时mtr用的时候会有排版错位。

可能 mtr 更新了,具体不清楚,反正 grep 不行的话就有问题

@zu1k zu1k closed this as completed Apr 27, 2022
fcwys added a commit to fcwys/nali that referenced this issue Oct 21, 2022
修复wry文件不完整时crash的问题

对 nali 的数据库和配置文件目录进行了规范,具体见 [文档-工作目录](https://github.com/zu1k/nali#%E5%B7%A5%E4%BD%9C%E7%9B%AE%E5%BD%95)

优先使用环境变量 NALI_HOME、NALI_CONFIG_HOME、NALI_DB_HOME 指定的目录
未指定 nali 特定环境变量的情况下默认使用 XDG 规范,配置文件目录在 $XDG_CONFIG_HOME/nali,数据库文件目录在 $XDG_DATA_HOME/nali
若未检测到 XDG 相关环境变量,将根据平台使用默认目录,具体见 XDG Base Directory 中 XDG_CONFIG_HOME 和 XDG_DATA_HOME 部分
初次运行此版本将会进行目录和数据的迁移,将 ~/.nali 下的配置文件和数据库转移到相应目录,并删除 ~/.nali 目录

支持使用环境变量指定的代理下载数据库,thanks to @jingjingxyk zu1k#126
修复了 pipe mtr 时无法获取内容和格式错乱的问题,thanks to @mzz2017 zu1k#132 , fix zu1k#12, zu1k#61, zu1k#85, zu1k#115, zu1k#123.
cache map 使用并发安全的版本,thanks to @lhcn zu1k#125
升级 Go 版本到 1.19,更新了依赖
不再支持 ip2region 旧数据库格式,目前仅支持 ip2region xdb 格式

去除了已过时的数据库下载代码
从 git 历史记录中去除了数据库文件

修复自动迁移导致生成空配置文件的bug
更新纯真IP数据库的下载地址
fcwys added a commit to fcwys/nali that referenced this issue May 11, 2024
修复wry文件不完整时crash的问题

对 nali 的数据库和配置文件目录进行了规范,具体见 [文档-工作目录](https://github.com/zu1k/nali#%E5%B7%A5%E4%BD%9C%E7%9B%AE%E5%BD%95)

优先使用环境变量 NALI_HOME、NALI_CONFIG_HOME、NALI_DB_HOME 指定的目录
未指定 nali 特定环境变量的情况下默认使用 XDG 规范,配置文件目录在 $XDG_CONFIG_HOME/nali,数据库文件目录在 $XDG_DATA_HOME/nali
若未检测到 XDG 相关环境变量,将根据平台使用默认目录,具体见 XDG Base Directory 中 XDG_CONFIG_HOME 和 XDG_DATA_HOME 部分
初次运行此版本将会进行目录和数据的迁移,将 ~/.nali 下的配置文件和数据库转移到相应目录,并删除 ~/.nali 目录

支持使用环境变量指定的代理下载数据库,thanks to @jingjingxyk zu1k#126
修复了 pipe mtr 时无法获取内容和格式错乱的问题,thanks to @mzz2017 zu1k#132 , fix zu1k#12, zu1k#61, zu1k#85, zu1k#115, zu1k#123.
cache map 使用并发安全的版本,thanks to @lhcn zu1k#125
升级 Go 版本到 1.19,更新了依赖
不再支持 ip2region 旧数据库格式,目前仅支持 ip2region xdb 格式

去除了已过时的数据库下载代码
从 git 历史记录中去除了数据库文件

修复自动迁移导致生成空配置文件的bug
更新纯真IP数据库的下载地址
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants