-
Notifications
You must be signed in to change notification settings - Fork 681
Conversation
Just realized that the same check is needed for |
@@ -575,3 +575,15 @@ func checkFatal(e error) { | |||
Log.Fatal(e) | |||
} | |||
} | |||
|
|||
func filterEmpty(list []string) []string { | |||
filtered := list[:0] |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This is a user input sanitisation issue s doesn't really belong into a library; the mesh library should be able to assume it operates on clean data. |
I am not even convinced we should be doing any filtering here. Where does the panic in #2495 originate? |
Seems to me that the empty address should be rejected in However, first I'd like to understand where/why the panic arises. |
Because https://github.com/weaveworks/mesh/blob/master/connection_maker.go#L89 does not check whether a host has been supplied and later on, |
but according to the stack trace you posted, it fails in connectionTerminated. |
|
Right. So still it ...
|
Yes. |
Need to update mesh submodule after weaveworks/mesh#58 gets merged. |
0c91d93
to
5caeb38
Compare
@brb I have merged the mesh PR - update at will. |
5caeb38
to
6df2782
Compare
Fix #2495