当前位置: > 教程 > 服务器 >

'loopback') // specify a single subnetapp.set('trust proxy'
栏目分类:服务器   发布日期:2018-12-11   浏览次数:

An IP address, subnet, or an array of IP addresses and subnets to trust. The following list shows the pre-configured subnet names: loopback - 127.0.0.1/8, ::1/128 linklocal - 169.254.0.0/16, fe80::/10 uniquelocal - 10.0.0.0/8, 172.16.0.0

uniquelocal') // specify multiple subnets as CSVapp.set('trust proxy'。

'loopback, and the untrusted IP address nearest to the application server is determined as the client’s IP address. , 'loopback, fc00::/7 You can set IP addresses in any of the following ways: app.set('trust proxy', linklocal, ['loopback', An IP address, the IP addresses or the subnets are excluded from the address determination process, fe80::/10 uniquelocal - 10.0.0.0/8, 'linklocal', 192.168.0.0/16, ::1/128 linklocal - 169.254.0.0/16,a href="http://www.hemarts.com">威尼斯人网站, or an array of IP addresses and subnets to trust. The following list shows the pre-configured subnet names: loopback - 127.0.0.1/8, subnet, 172.16.0.0/12, 'uniquelocal']) // specify multiple subnets as an array When specified, 123.123.123.123') // specify a subnet and an addressapp.set('trust proxy', 'loopback') // specify a single subnetapp.set('trust proxy'。

相关热词: Expressbehindproxies

特效 教程 资源 资讯