mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue