mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-03 12:25:34 +08:00
main: ignore empty lines in configuration
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -2554,7 +2554,7 @@ void load_config(char *config_file, int argc_orig, char *argv_orig[])
|
|||||||
std::vector<std::string> arguments;
|
std::vector<std::string> arguments;
|
||||||
while(std::getline(conf_file,line))
|
while(std::getline(conf_file,line))
|
||||||
{
|
{
|
||||||
if(line.at(0)=='#')
|
if(line==""||line.at(0)=='#')
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user