mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
main: ignore empty lines in configuration
This commit is contained in:
parent
ab0ce3ade3
commit
57b874ee6d
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user