Skip to content

UPnP status codes are interpreted incorrectly with MiniUPnPc 2.2.8+ #5462

Description

@RootBloader

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

MiniUPnPc 2.3.3 returns 3 for a valid but disconnected IGD and 4 for an unknown device.
Sunshine treats 3 as unknown and accepts only 1 and 2.
The router advertises a valid IGD v2 but reports NewConnectionStatus=Disconnected.
Older MiniUPnPc used 2 for disconnected, explaining the regression.
The fix should use UPNP_*_IGD constants and accept connected, private-IP, and disconnected IGDs.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

11

Architecture

amd64/x86_64

Package

other (fork of this repo)

GPU Type

n/a

GPU Model

4080 super

GPU Driver/Mesa Version

n/a - network issue

Capture Method

None

Apps

Log output

Online logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions