当前位置:网站首页>(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:51:00 【junxuezheng】
(node):22344 [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066
1、 reason
nodejs use https When accessing the database , You can't write directly ip Address ,
2、 Solution
- hold ip Address changed to domain name
How to set up ip Domain name mapping , Please refer to my other blog : Domain name mapping to specified IP
3、 verification
After mapping , hold host Situated ip Rewrite the address to the domain name 
remarks : There is another solution , Need modification nodejs The code of the module , Specific reference Skip TLS SNI if host is IP address
Reference resources :
【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
边栏推荐
- (p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef
- What is the quality traceability function of MES system pursuing?
- Building a cluster: and replacing with error
- 2022.6.9-----leetcode. four hundred and ninety-seven
- xshell启动遇到“由于找不到mfc110.dll,无法继续执行代码的解决方法”
- Seurat package addmodulescore is used for bulk RNA SEQ data
- Shell basic syntax -- array
- Only use MES as a tool? Looks like you missed the most important thing
- Jump to an interface at a specified time. (Web Development)
- 报错:文件夹在另一个程序中打开无法删除怎么办
猜你喜欢

svg中viewbox图解分析

Application method of new version UI of idea + use method of non test qualification and related introduction

第八章-数据处理的两个基本问题

【进阶指针二】数组传参&指针传参&函数指针&函数指针数组&回调函数

第三章 寄存器 (内存访问)

报错:文件夹在另一个程序中打开无法删除怎么办

Composition of box model

【新规划】

《MATLAB 神經網絡43個案例分析》:第7章 RBF網絡的回歸--非線性函數回歸的實現

利用nvm动态调整nodejs版本,解决因为node版本过高或过低导致项目无法运行和打包
随机推荐
Union selector
Wechat applet image saving function
【进阶指针一】字符数组&数组指针&指针数组
In the era of intelligent manufacturing, how do enterprises carry out digital transformation
Jump to an interface at a specified time. (Web Development)
When converting tensor to ndarray in tensorflow, the run or Eval function is constantly called in the loop, and the code runs more and more slowly!
What is the difference between ERP production management and MES management system?
[sklearn] lightgbm
Where does the driving force of MES system come from? What problems should be paid attention to in model selection?
Engineers learn music theory (II) scale and tendency
Background position - exact units
Display the remaining valid days according to the valid period
Encapsulate the amount input box component.
[advanced pointer I] character array & array pointer & pointer array
【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组
Analysis of 43 cases of MATLAB neural network: Chapter 7 regression of RBF Network -- Realization of nonlinear function regression
Only use MES as a tool? Looks like you missed the most important thing
Notes used by mqtt (combined with source code)
(P14) use of the override keyword
ISCSI详解(五)——ISCSI客户端配置实战