Dont normalize *

This commit is contained in:
Miek Gieben
2016-04-03 16:08:10 +01:00
parent 3b25bfd7ae
commit 8d0d324f27

View File

@@ -80,10 +80,15 @@ func parseTransfer(c *Controller) (to, from string, err error) {
}
if value == "to" {
to = c.Val()
to = middleware.Addr(to).Normalize()
if to != "*" {
to = middleware.Addr(to).Normalize()
}
}
if value == "from" {
from = c.Val()
if from == "*" {
// print some kind of error? TODO(miek)
}
from = middleware.Addr(from).Normalize()
}
}