Merge pull request #6567 from Icinga/bugfix/env-api-port-number

ApiListener: Dump the state file port detail as number
This commit is contained in:
Michael Friedrich 2018-08-22 14:04:15 +02:00 committed by GitHub
commit e8f0d6da4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1484,7 +1484,7 @@ void ApiListener::UpdateStatusFile(TcpSocket::Ptr socket)
Utility::SaveJsonFile(path, 0644, new Dictionary({
{"host", details.first},
{"port", details.second}
{"port", Convert::ToLong(details.second)}
}));
}