Skip to content

Commit a10db20

Browse files
committed
Misc fixes
1 parent 80ddd5b commit a10db20

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010
* `[beta.2]` — Fixes a bug that would throw a red page of death when submitting an invalid egg variable value for a server in the Admin CP.
1111
* `[beta.2]` — Someone found a `@todo` that I never `@todid` and thus database hosts could not be created without being linked to a node. This is fixed...
1212
* `[beta.2]` — Fixes bug that caused incorrect rendering of CPU usage on server graphs due to missing variable.
13+
1314
### Changed
1415
* API keys have been changed to only use a single public key passed in a bearer token. All existing keys can continue being used, however only the first 32 characters should be sent.
1516

app/Http/Middleware/API/AuthenticateIPAccess.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public function handle(Request $request, Closure $next)
2828
return $next($request);
2929
}
3030

31+
$find = new IP($request->ip());
3132
foreach ($model->allowed_ips as $ip) {
32-
if (Range::parse($ip)->contains(new IP($request->ip()))) {
33+
if (Range::parse($ip)->contains($find)) {
3334
return $next($request);
3435
}
3536
}

resources/lang/en/base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
'header_sub' => 'Manage your API access keys.',
3434
'list' => 'API Keys',
3535
'create_new' => 'Create New API key',
36-
'keypair_created' => 'An API Key-Pair has been generated and is listed below.',
36+
'keypair_created' => 'An API key has been successfully generated and is listed below.',
3737
],
3838
'new' => [
3939
'header' => 'New API Key',

0 commit comments

Comments
 (0)