当前位置:网站首页>(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
2022-06-12 08:42:00 【junxuezheng】
(node):22344 [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066
1、原因
nodejs采用https访问数据库时,不可以直接书写ip地址,
2、解决方案
- 把ip地址更改为域名
如何建立ip和域名映射,请参考我的另外一篇博客:域名映射到指定IP
3、验证
建立完映射后,把host处的ip地址改写为域名
备注:还有另外一种解决方案,需要修改nodejs模块的代码,具体参考Skip TLS SNI if host is IP address
参考:
【1】Add Documentation About [DEP0123] When Using IP’s For Hostnames #1950:https://github.com/brianc/node-postgres/issues/1950
【2】Skip TLS SNI if host is IP address :https://github.com/brianc/node-postgres/pull/1890
边栏推荐
- [advanced pointer III] implement C language quick sorting function qsort & callback function
- Jump to an interface at a specified time. (Web Development)
- Call method and apply method
- Hands on deep learning 18 -- model selection + over fitting and under fitting and code implementation
- Lock mechanism in MySQL
- Principle and configuration of MPLS
- (p19-p20) delegate constructor (proxy constructor) and inheritance constructor (using)
- Arrays in JS
- Inheritance of row height
- 记Date类型的一次踩坑
猜你喜欢

MPLS的原理与配置

Error: what if the folder cannot be deleted when it is opened in another program

Handling abnormal data
![[advanced pointer 2] array parameter transfer & pointer parameter transfer & function pointer & function pointer array & callback function](/img/90/447d601a8c338cdd5a6674a2dc59ae.png)
[advanced pointer 2] array parameter transfer & pointer parameter transfer & function pointer & function pointer array & callback function

Ankerui fire emergency lighting and evacuation indication system

Inheritance of row height
![[new planning]](/img/8e/0e15e0f3ee08002eaceea1fe8948ec.jpg)
[new planning]

Engineers learn music theory (I) try to understand music

X64dbg debugging exception_ ACCESS_ VIOLATION C0000005

Composition of box model
随机推荐
Background color translucent
Principle and configuration of MPLS
Engineers learn music theory (II) scale and tendency
Close asymmetric key
The Three Kingdoms kill the surrounding areas -------- explanation of the pig Kingdom kill problem
Hands on learning and deep learning -- simple implementation of softmax regression
Display the remaining valid days according to the valid period
2022.6.9-----leetcode.497
《MATLAB 神經網絡43個案例分析》:第7章 RBF網絡的回歸--非線性函數回歸的實現
第八章-数据处理的两个基本问题
Is it really expensive for enterprises to launch MES software?
Background location case II
《MATLAB 神经网络43个案例分析》:第7章 RBF网络的回归--非线性函数回归的实现
【进阶指针二】数组传参&指针传参&函数指针&函数指针数组&回调函数
svg中viewbox图解分析
API处理Android安全距离
Database foundation -- normalization and relational schema
Arrays in JS
调整svg宽高
Error: ER_ NOT_ SUPPORTED_ AUTH_ MODE: Client does not support authentication protocol requested ... ...