View Single Post
Old 19th November 2016, 07:07   #7
dexter
Junior Member
 
Join Date: Nov 2016
Posts: 4
Thanks for the details Jaromanda!! Really appreciate it.

Added a small logic to ignore special characters check for 'password' field.

Below are the code changes and now its working as expected!! Yey


File: DarkIceConfig.cpp
code:
std::string str2 ("password");
if ( (ix = str.find(str2)) == str.npos ) {
/* delete everything after the first # */
if ( (ix = str.find( '#')) != str.npos ) {
str.erase( ix);
}
}




File: ConfigSection.cpp

code:
std::string str2 ("password");
if ( (ix = str.find(str2)) == str.npos ) {
/* delete everything after the first # */
if ( (ix = str.find( '#')) != str.npos ) {
str.erase( ix);
}
}




Darkice TCP Packets after fix:


Quote:
mypassword:#790xxx
OK2
icy-caps:11
icy-name: Radio Broadcast
icy-url:http:www.shoutcast.com
icy-genre:Spiritual
icy-br:128
icy-pub:1
...D...................................................................................................................................................................................................................................................... ..........................................................................................................................................................................d`].....i......
.......... ..4....LAME3.99.5

Thanks a lot for your time and support!!
dexter is offline   Reply With Quote