File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,18 @@ extension Application {
6363
6464 let server = Reference . resolveDomain ( domain: server)
6565 let scheme = try RequestScheme ( registry. scheme) . schemeFor ( host: server)
66+ let _url = " \( scheme) :// \( server) "
67+ guard let url = URL ( string: _url) else {
68+ throw ContainerizationError ( . invalidArgument, message: " Cannot convert \( _url) to URL " )
69+ }
70+ guard let host = url. host else {
71+ throw ContainerizationError ( . invalidArgument, message: " Invalid host \( server) " )
72+ }
6673
6774 let client = RegistryClient (
68- host: server ,
75+ host: host ,
6976 scheme: scheme. rawValue,
77+ port: url. port,
7078 authentication: BasicAuthentication ( username: username, password: password) ,
7179 retryOptions: . init(
7280 maxRetries: 10 ,
You can’t perform that action at this time.
0 commit comments