packages icon indicating copy to clipboard operation
packages copied to clipboard

ddns-scripts: verify_host_port hangs with GNU netcat

Open zhangyoufu opened this issue 5 years ago • 1 comments

Maintainer: @feckert Environment: whatever

Description: If GNU netcat is installed, -w option is detected and the script treat it as busybox nc compiled with extensions. However the -w 1 parameter in GNU netcat does not work the same way as busybox, and nc may hang forever.

zhangyoufu avatar Dec 30 '20 07:12 zhangyoufu

Well... till today it's still unsolved

GNU netcat help mentions

-c, --close                close connection on EOF from stdin

A temp workaround is to add -c to nc flags at https://github.com/openwrt/packages/blob/master/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh#L592

I don't have BusyBox nc ext version available so it's unclear whether this change will affect their nc.

ttyS0 avatar Oct 12 '22 10:10 ttyS0