jow- / ucode

JavaScript-like language with optional templating
ISC License
87 stars 24 forks source link

Lack of docmention about keyword `require`, where the source code of require `fw4`(openwrt 22) #117

Closed mokeyish closed 1 year ago

mokeyish commented 1 year ago

Hi, There is some bug of generating docker firewall zone, https://github.com/openwrt/openwrt/issues/10891

It seems that named zone are not identified by fw4. but I can't find the source code of fw4.

图片 图片
jow- commented 1 year ago

https://git.openwrt.org/?p=project/firewall4.git;a=blob;f=root/usr/share/ucode/fw4.uc;h=2a1e397c2e84c9437319232760c528c36dd3e148;hb=3db474135c62d1eeea7a80dd151d53d94005f1d5

mokeyish commented 1 year ago

Thanks!

mokeyish commented 1 year ago

@jow- Hi,

I fix https://github.com/openwrt/openwrt/issues/10891 perfectly by simplely adding folowing code in file /usr/share/ucode/fw4.uc

图片

I see that firewall4 is mainly maintained by you, do you see any problems with this change?