File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments