yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network

Home Page:https://yggdrasil-network.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic when MulticastInterfaces/Regex has errors.

shibe2 opened this issue · comments

Current behavior

Regex: regexp.MustCompile(intf.Regex),

MustCompile is like Compile but panics if the expression cannot be parsed.

Expected behavior

Print a message that points to MulticastInterfaces and includes error from regexp.Compile. Then either exit or ignore the erroneous entry.

commented

This looks like expected behavior: almost all config errors cause panic

almost all config errors cause panic

Gross.