Commit ff263567 authored by Adam Stankiewicz's avatar Adam Stankiewicz

Change + to space to allows nice + be in the url

parent 81b90010
......@@ -148,7 +148,7 @@ func ParsePermissions(s string) (*Permissions, error) {
return &Permissions{}, nil
}
perms := strings.Split(s, "+")
perms := strings.Split(s, " ")
for _, perm := range perms {
parts := strings.Split(perm, ":")
......
......@@ -46,7 +46,7 @@ var permissionsTests = []struct {
Ports: PortSet{PortRange{Min: 0, Max: 65535}},
},
}},
{"bind:127.0.0.1,localhost:80,443,8000-8100+connect:*.google.pl:80,443", &Permissions{
{"bind:127.0.0.1,localhost:80,443,8000-8100 connect:*.google.pl:80,443", &Permissions{
Permission{
Actions: StringSet{"bind"},
Hosts: StringSet{"127.0.0.1", "localhost"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment