Fix bug of getLocalIp.
Merge remote-tracking branch 'origin/master' into riversyang