mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-28 15:29:09 +01:00
📝 Add docstrings to mdm_integration
Docstrings generation was requested by @riccardomanfrin. * https://github.com/netbirdio/netbird/pull/6374#issuecomment-4658991606 The following files were modified: * `client/cmd/debug.go` * `client/cmd/root.go` * `client/internal/profilemanager/config.go` * `client/mdm/policy.go` * `client/mdm/policy_darwin.go` * `client/mdm/policy_mobile.go` * `client/mdm/policy_other.go` * `client/mdm/policy_windows.go` * `client/mdm/ticker.go` * `client/server/mdm.go` * `client/server/server.go` * `client/ui/client_ui.go` * `docs/netbird-macos.sh`
This commit is contained in:
@@ -719,7 +719,7 @@ func (config *Config) applyMDMPolicy(policy *mdm.Policy) {
|
||||
// parseURL parses and validates the URL for the named service.
|
||||
// It requires the URL to use the http or https scheme and, if no port is present,
|
||||
// appends ":443" for https or ":80" for http. On success it returns the parsed
|
||||
// *url.URL; on failure it returns a non-nil error.
|
||||
// ":80" is appended. The `serviceName` is used to contextualize error messages.
|
||||
func parseURL(serviceName, serviceURL string) (*url.URL, error) {
|
||||
parsedMgmtURL, err := url.ParseRequestURI(serviceURL)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user