[minor] add conf file option to discover public ip