diff -Nru litecoin-0.21.3/debian/changelog litecoin-0.21.3/debian/changelog
--- litecoin-0.21.3/debian/changelog	2024-04-28 11:05:49.000000000 +0800
+++ litecoin-0.21.3/debian/changelog	2024-11-19 19:09:19.000000000 +0800
@@ -1,3 +1,9 @@
+litecoin (0.21.3-1.1) UNRELEASED; urgency=medium
+
+  * fix net.cpp too few arguments to function error. 
+
+ -- Gui-Yue <yuemeng.gui@gmail.com>  Tue, 19 Nov 2024 19:09:19 +0800
+
 litecoin (0.21.3-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru litecoin-0.21.3/debian/patches/fix_netcpp_error.patch litecoin-0.21.3/debian/patches/fix_netcpp_error.patch
--- litecoin-0.21.3/debian/patches/fix_netcpp_error.patch	1970-01-01 08:00:00.000000000 +0800
+++ litecoin-0.21.3/debian/patches/fix_netcpp_error.patch	2024-11-19 19:09:08.000000000 +0800
@@ -0,0 +1,16 @@
+--- a/src/net.cpp
++++ b/src/net.cpp
+@@ -1637,7 +1637,12 @@
+     struct IGDdatas data;
+     int r;
+ 
+-    r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
++    char errorMsg[256];
++    #if MINIUPNPC_API_VERSION >= 18
++        r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), errorMsg, sizeof(errorMsg));
++    #else
++        r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
++    #endif
+     if (r == 1)
+     {
+         if (fDiscover) {
diff -Nru litecoin-0.21.3/debian/patches/series litecoin-0.21.3/debian/patches/series
--- litecoin-0.21.3/debian/patches/series	2024-04-28 11:05:49.000000000 +0800
+++ litecoin-0.21.3/debian/patches/series	2024-11-19 19:06:38.000000000 +0800
@@ -8,3 +8,4 @@
 #t-skip--libmw.patch
 #t-skip--secp256k1.patch
 t-skip--wallet.patch
+fix_netcpp_error.patch
