File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- $Id: Changelog.txt,v 1.350 2014/02/06 09:52:03 nanard Exp $
1
+ $Id: Changelog.txt,v 1.351 2014/02/11 09:35:52 nanard Exp $
2
+
3
+ 2014/02/11:
4
+ Fix PCP Map renewal
2
5
3
6
2014/02/06:
4
7
possibility to disable ipv6 at runtime
Original file line number Diff line number Diff line change 1
- /* $Id: pcpserver.c,v 1.7 2014/02/03 09:38:26 nanard Exp $ */
1
+ /* $Id: pcpserver.c,v 1.9 2014/02/11 09:35:53 nanard Exp $ */
2
2
/* MiniUPnP project
3
3
* Website : http://miniupnp.free.fr/
4
4
* Author : Peter Tatrai
@@ -803,7 +803,7 @@ static void CreatePCPMap(pcp_info_t *pcp_msg_info)
803
803
char desc [64 ];
804
804
char iaddr_old [INET_ADDRSTRLEN ];
805
805
uint16_t iport_old ;
806
- unsigned int timestamp = time ( NULL ) + pcp_msg_info -> lifetime ;
806
+ unsigned int timestamp ;
807
807
int r = 0 ;
808
808
809
809
if (pcp_msg_info -> ext_port == 0 ) {
@@ -840,6 +840,8 @@ static void CreatePCPMap(pcp_info_t *pcp_msg_info)
840
840
}
841
841
} while (r == 0 );
842
842
843
+ timestamp = time (NULL ) + pcp_msg_info -> lifetime ;
844
+
843
845
if ((pcp_msg_info -> ext_port == 0 ) ||
844
846
(IN6_IS_ADDR_V4MAPPED (pcp_msg_info -> int_ip ) &&
845
847
(!check_upnp_rule_against_permissions (upnppermlist ,
You can’t perform that action at this time.
0 commit comments