Closed hubertqc closed 2 years ago
That's a nice catch @hubertqc, thank you!
Any chance you would be interested in submitting a PR to fix the problem? If so, there are some basic guidelines in the CONTRIBUTING.md file, but I'm also happy to answer any questions you may have about the process.
Hi @pcmoore,
Thanks to you, I just submitted my very first PR on a public GitHub repo !
Hope I did it correctly.
Thanks @hubertqc, I appreciate the help!
This should be resolved with PR #11.
https://github.com/netlabel/netlabel_tools/blob/b9776c02c65d5d7bd2353c095e3d7f8702ab18f2/netlabelctl/netlabel-config.in#L42
The last
cut -d':' -f 2
will break any IPv6 address found in the running configuration. Indeed, it will only return the very first part of the IPv6 address before the very first:
in the address. And thus thenetlabel-config reset
command will not be able to purge IPv6 based rules for theunlbl
protocol.I suggest using
cut -d':' -f 2-
instead.