daeuniverse / daed

daed, a modern dashboard with dae.
https://daeuniverse.github.io/daed/
MIT License
552 stars 57 forks source link

[Bug Report] daed的路由填写似乎不接受IPv6地址/CIDR #434

Closed Glucy-2 closed 1 month ago

Glucy-2 commented 6 months ago

Checks

Current Behavior

在 daed 中填写路由时,如果 sipdip 中包含 IPv6 地址 / CIDR,则 daed 会拒绝此规则

Expected Behavior

daed 能够正常设置 IPv6 路由

Steps to Reproduce

  1. 安装并启动 daed
  2. 在路由中填写包含 IPv6 地址 / CIDR 的路由规则,例如如下规则:
    dip(2001:da8::/32) -> direct

    会报错:

    bad current routing: 
    line 30:8 dip(2001:da8::/32) -> direct
                  ^: no viable alternative at input 'dip(2001:'

    如果填写:

    dip('2001:da8::/32') -> direct

    会报错:

    panic occurred: unexpected

Environment

Anything else?

No response

dae-prow[bot] commented 6 months ago

Thanks for opening this issue!

EkkoG commented 1 month ago

麻烦尝试一下最新版,我这边没有复现这个问题

mzz2017 commented 1 month ago

这个写的时候要加引号