-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
miniupnpc: Update to 2.2.8 (new major 18) #97139
Conversation
Keep support for major 17 by using a version check for the changed API. Fixes godotengine#93907.
@@ -131,7 +131,11 @@ void UPNP::parse_igd(Ref<UPNPDevice> dev, UPNPDev *devlist) { | |||
GetUPNPUrls(&urls, &data, dev->get_description_url().utf8().get_data(), 0); | |||
|
|||
char addr[16]; | |||
#if MINIUPNPC_API_VERSION >= 18 | |||
int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16, nullptr, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new prototype is:
UPNP_GetValidIGD(struct UPNPDev * devlist,
struct UPNPUrls * urls,
struct IGDdatas * data,
char * lanaddr, int lanaddrlen,
char * wanaddr, int wanaddrlen);
We should evaluate whether we want to make use of the new wanaddr
stuff @mhilbrunner
Backports godotengine#97139 without bumping the embedded miniupnpc library. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Cherry-picked for 4.3.1. Doesn't cherry-pick cleanly on |
Backports godotengine/godot#97139 without bumping the embedded miniupnpc library. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Keep support for major 17 by using a version check for the changed API.
Fixes #93907.