Skip to content

Commit f65d8fa

Browse files
committed
Fix plesk#63: Add an ability to set two IPs (v4 and v6) for webspace
1 parent b2b7ebe commit f65d8fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/Api/Operator/Webspace.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ public function create(array $properties, array $hostingProperties = null, strin
8787
}
8888

8989
if (isset($properties['ip_address'])) {
90-
$infoHosting->addChild('ip_address', $properties['ip_address']);
90+
foreach ((array) $properties['ip_address'] as $ipAddress) {
91+
$infoHosting->addChild('ip_address', $ipAddress);
92+
}
9193
}
9294
}
9395

0 commit comments

Comments
 (0)