fix connection ports
This commit is contained in:
		
							parent
							
								
									f019d2594b
								
							
						
					
					
						commit
						0a5e33cc27
					
				@ -903,8 +903,8 @@ static int net_conn_get_tcp(sigar_t *sigar,
 | 
				
			|||||||
            break;
 | 
					            break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        conn.local_port  = entry->LocalPort;
 | 
					        conn.local_port  = (unsigned short)entry->LocalPort;
 | 
				
			||||||
        conn.remote_port = entry->RemPort;
 | 
					        conn.remote_port = (unsigned short)entry->RemPort;
 | 
				
			||||||
        conn.type = SIGAR_NETCONN_TCP;
 | 
					        conn.type = SIGAR_NETCONN_TCP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        sigar_inet_ntoa(sigar, entry->LocalAddress,
 | 
					        sigar_inet_ntoa(sigar, entry->LocalAddress,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user