File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -879,9 +879,10 @@ init_tun(const char *dev, /* --dev option */
879
879
{
880
880
if (curele -> ai_family == AF_INET )
881
881
{
882
+ const in_addr_t local = ntohl (((struct sockaddr_in * )curele -> ai_addr )-> sin_addr .s_addr );
882
883
check_addr_clash ("local" ,
883
884
tt -> type ,
884
- (( struct sockaddr_in * ) curele -> ai_addr ) -> sin_addr . s_addr ,
885
+ local ,
885
886
tt -> local ,
886
887
tt -> remote_netmask );
887
888
}
@@ -891,9 +892,10 @@ init_tun(const char *dev, /* --dev option */
891
892
{
892
893
if (curele -> ai_family == AF_INET )
893
894
{
895
+ const in_addr_t remote = ntohl (((struct sockaddr_in * )curele -> ai_addr )-> sin_addr .s_addr );
894
896
check_addr_clash ("remote" ,
895
897
tt -> type ,
896
- (( struct sockaddr_in * ) curele -> ai_addr ) -> sin_addr . s_addr ,
898
+ remote ,
897
899
tt -> local ,
898
900
tt -> remote_netmask );
899
901
}
You can’t perform that action at this time.
0 commit comments