Changeset 6158 for pjproject


Ignore:
Timestamp:
Feb 6, 2020 2:52:10 AM (5 years ago)
Author:
ming
Message:

Fixed #2266: Allow Via header with IPv6 containing []

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r6035 r6158  
    385385    status = pj_cis_dup(&pconst.pjsip_VIA_PARAM_SPEC, &pconst.pjsip_TOKEN_SPEC); 
    386386    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    387     pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC, ":"); 
     387    pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC, "[:]"); 
    388388 
    389389    status = pj_cis_dup(&pconst.pjsip_VIA_PARAM_SPEC_ESC, &pconst.pjsip_TOKEN_SPEC_ESC); 
    390390    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    391     pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC_ESC, ":"); 
     391    pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC_ESC, "[:]"); 
    392392 
    393393    status = pj_cis_dup(&pconst.pjsip_HOST_SPEC, &pconst.pjsip_ALNUM_SPEC); 
Note: See TracChangeset for help on using the changeset viewer.