mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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:
commit
e8f0d6da4f
@ -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)}
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user