远程用户的IPv6地址显示为localhost

Are you using a reverse proxy like nginx? It looks like a missing X-Forwarded-For header to me.