1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

8 Commits

Author SHA1 Message Date
RaidMax
3e186ca07a
Add ResolvedExternalIPAddress to API and Master Communication (#365)
* Feature: Add ResolvedExternalIPAddress to API and Master Communication

This commit introduces the `ResolvedExternalIPAddress` property to enhance IP address reporting.

1.  **Server API (`WebfrontCore/Controllers/API/Server.cs`):**
    The `ResolvedExternalIPAddress` property has been added to the JSON
    responses for the `/api/server` endpoints. This property is nullable
    and contains the IPv4 string value of the manager's external IP address
    if the server's resolved IP endpoint is an internal address. Otherwise,
    it is null.

2.  **Master Server Communication (`MasterCommunication.cs` and `ApiServer.cs`):**
    - The `ApiServer` DTO (in `Application/API/Master/ApiServer.cs`) now
      includes the `ResolvedExternalIPAddress` property (serialized as
      `resolved_external_ip_address`).
    - The `UploadStatus` method in `Application/Misc/MasterCommunication.cs`
      now populates this property for each server being reported to the
      master server, using the same logic (external IP if server's own
      resolved IP is internal).

This provides more comprehensive IP address information both through the
web API and to the master server.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-05-24 15:36:24 -05:00
Amos
5dca8717b9
Using IRemoteCommandService to handle redirect for Command Execution via API (#333) 2024-07-23 00:38:55 +01:00
RaidMax
3dd3f6ab2d optimize player history retrieval 2023-05-30 18:12:57 -05:00
RaidMax
ebe69a94ad implement new eventing system 2023-04-05 09:54:57 -05:00
RaidMax
53a6ef2ec3 update references from IP to ListenAddress 2023-04-04 22:21:18 -05:00
RaidMax
e7b357479d add additional fields to server api 2022-01-26 15:26:26 -06:00
RaidMax
fe91c23abe small issue fix with api and more checks for welcome tags 2021-05-04 19:01:09 -05:00
RaidMax
c231c6b610 implement more robust command api and login
improve web console command response reliability and consistency
2021-01-17 21:58:18 -06:00