Revamp Profile Domains and Ports to Endpoints and ServiceEndpoints

This commit is contained in:
Daniel
2019-01-17 10:55:06 +01:00
parent 4017de7dac
commit bde81d815d
13 changed files with 417 additions and 249 deletions

View File

@@ -2,6 +2,7 @@ package profile
import (
"errors"
"fmt"
"strings"
"github.com/Safing/portmaster/status"
@@ -115,7 +116,7 @@ func (flags Flags) String() string {
markedFlags = append(markedFlags, s)
}
}
return strings.Join(markedFlags, ", ")
return fmt.Sprintf("[%s]", strings.Join(markedFlags, ", "))
}
// Add adds a flag to the Flags with the given level.