Skip to content

FXServer doesn't start in IPv6-only setups. #3559

@Gogsi

Description

@Gogsi

What happened?

Originally reported here in the Cfx.re Discord.

Some functionalities like sending the server heartbeart, authenticating with Nucleus, checking the server license key (presumed, in the private repo) set HttpRequestOptions.ipv4 = true.

This ends up setting the CURL_IPRESOLVE_V4 flag which uses only IPv4 addresses and fails on servers set up such that the server only has IPv6 enabled but has a reverse proxy accepting both IPv4 and IPv6. I think such setups are rare, but also valid so it might be worth investigating.

Image Image

Expected result

FXServer should be able to start, authenticate and heartbeat in IPv6-only configurations

Reproduction steps

  1. Get a server with both IPv4 and IPv6 support
  2. Disable IPv4
  3. Attempt to start FXServer
  4. Get the "An error occured while checking the server license key" error.

Importancy

There's a workaround

Area(s)

FXServer

Specific version(s)

FXServer 17000+

Additional information

d4c76bf switched Nucleus authentication to IPv4 only but the commit message doesn't explain the reason why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions