daeuniverse / daed

daed, a modern dashboard with dae.

Home Page:https://daeuniverse.github.io/daed/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Glucy-2 opened this issue · comments

Checks

  • I have searched the existing issues
  • I have read the documentation
  • Is it your first time sumbitting an issue

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

  • Daed version: v0.4.1
  • OS (e.g cat /etc/os-release): PVE (基于 Debian 12)
  • Kernel (e.g. uname -a): 6.8.4-2-pve
  • Others: NA

Anything else?

No response

Thanks for opening this issue!