Skip to content

Commit 0028a18

Browse files
authored
Merge pull request #198 from kirtangajjar/feature/dynamic-subnet-allocation
Add dynamic subnet allocation feature
2 parents 79af9ae + 9f71737 commit 0028a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WordPress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function create( $args, $assoc_args ) {
261261
$this->logger->debug( 'args:', $args );
262262
$this->logger->debug( 'assoc_args:', empty( $assoc_args ) ? array( 'NULL' ) : $assoc_args );
263263
$this->site_data['site_url'] = strtolower( \EE\Utils\remove_trailing_slash( $args[0] ) );
264-
$this->site_data['subnet_ip'] = \EE\Site\Utils\get_subnet_ip();
264+
$this->site_data['subnet_ip'] = \EE\Site\Utils\get_available_subnet();
265265

266266
$mu = \EE\Utils\get_flag_value( $assoc_args, 'mu' );
267267
$this->site_data['app_sub_type'] = $mu ?? 'wp';
@@ -1441,7 +1441,7 @@ protected function update_ssl( $assoc_args ) {
14411441

14421442
$extra_flags = '--precise';
14431443
$extra_flags .= ( 'wp' === $this->site_data['app_sub_type'] ) ? '' : ' --network';
1444-
1444+
14451445
$ssl = get_flag_value( $assoc_args, 'ssl' );
14461446
$from = $ssl === 'off' ? 'https' : 'http';
14471447
$to = $ssl === 'off' ? 'http' : 'https';

0 commit comments

Comments
 (0)