Skip to content

Commit df14018

Browse files
committed
Correctly return the updated key
1 parent 4ed7b26 commit df14018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/Eggs/EggConfigurationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected function matchAndReplaceKeys(string $value, array $structure): ?string
195195
// that. For example, the Spigot egg uses "config.docker.interface" to identify the Docker
196196
// interface to proxy through, but the Panel would be unaware of that.
197197
if (Str::startsWith($key, 'config.')) {
198-
return "{{{$key}}}";
198+
return preg_replace('/{{(.*)}}/', "{{{$key}}}", $value);
199199
}
200200

201201
// Replace anything starting with "server." with the value out of the server configuration

0 commit comments

Comments
 (0)