Skip to content

Commit 4b33b4d

Browse files
committed
Update Bitbucket IPs
1 parent 796fe5e commit 4b33b4d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Deployer.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ class Deployer
9494
* @var array of IP addresses
9595
*/
9696
private $allowedIpRanges = array(
97-
'131.103.20.165/32', // Bitbucket
98-
'131.103.20.166/32', // Bitbucket
97+
'131.103.20.160/27', // Bitbucket
98+
'165.254.145.0/26', // Bitbucket
99+
'104.192.143.0/24', // Bitbucket
99100
'192.30.252.0/22', // Github
100101
);
101102

@@ -160,7 +161,7 @@ public function __construct($options = array())
160161
'branch',
161162
'dateFormat',
162163
'notifyEmails',
163-
'allowedIPs'
164+
'allowedIpRanges'
164165
);
165166

166167
foreach ($options as $option => $value) {
@@ -169,6 +170,10 @@ public function __construct($options = array())
169170
}
170171
}
171172

173+
if (isset($options['additionalAllowedIpRanges'])) {
174+
$this->allowedIpRanges = array_merge($this->allowedIpRanges, $options['additionalAllowedIpRanges']);
175+
}
176+
172177
// Set a log filename
173178
if (!empty($this->logDirectory)) {
174179
$this->logFile = $options['logDirectory'] . 'auto-git-pull-' . time() . '.log';

0 commit comments

Comments
 (0)