Allow comments in config file
Fix a bug when using ip proxy