Ignore:
Timestamp:
Jul 23, 2018 7:15:08 AM (3 years ago)
Author:
riza
Message:

Close #2070: Print IPv6 addresses with brackets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r5822 r5833  
    873873    char host_port[128]; 
    874874 
    875     pj_ansi_snprintf(host_port, sizeof(host_port), "[%.*s:%d]", 
    876                      (int)tp->remote_name.host.slen, 
    877                      tp->remote_name.host.ptr, 
    878                      tp->remote_name.port); 
    879  
     875    pj_addr_str_print(&tp->remote_name.host,  
     876                      tp->remote_name.port, host_port, sizeof(host_port), 1); 
    880877    switch (state) { 
    881878    case PJSIP_TP_STATE_CONNECTED: 
Note: See TracChangeset for help on using the changeset viewer.