我正在尝试将IP地址存储在PostgreSQL中,并且遇到这样的错误:
invalid input syntax for type cidr: ":::ffff:127.0.0.1"
代码:22P02
:invalid_text_representation
我像这样从node / express应用程序获取IP:
let ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
。我在做什么错了?