当前位置:网站首页>(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
边栏推荐
- 【指针进阶三】实现C语言快排函数qsort&回调函数
- Triggers in MySQL
- (p15-p16) optimization of the right angle bracket of the template and the default template parameters of the function template
- Engineers learn music theory (III) interval mode and chord
- JVM learning notes: garbage collection mechanism
- Priority issues
- 【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组
- 进制GB和GiB的区别
- 动态线段树leetcode.699
- Why should enterprises implement MES? What are the specific operating procedures?
猜你喜欢

Oracle installation details (verification)

Priority issues

Principle and configuration of MPLS

Background attribute compound writing

JVM学习笔记:垃圾回收机制

【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C

Background location case 1

Ankerui motor protector has the functions of overload inverse time limit, overload definite time limit, grounding, starting timeout, leakage, underload, phase failure, locked rotor, etc

Engineers learn music theory (II) scale and tendency

Background color translucent
随机推荐
What is the quality traceability function of MES system pursuing?
《MATLAB 神經網絡43個案例分析》:第7章 RBF網絡的回歸--非線性函數回歸的實現
svg中viewbox图解分析
Database foundation -- normalization and relational schema
(P14) use of the override keyword
This article is required for the popularization of super complete MES system knowledge
Oracle installation details (verification)
Record the first step pit of date type
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array
The Three Kingdoms kill the surrounding areas -------- explanation of the pig Kingdom kill problem
【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组
JVM learning notes: garbage collection mechanism
Project sorting of niuke.com
When the uniapp page jumps with complex data parameters.
The difference between deep copy and shallow copy
Dynamic segment tree leetcode six hundred and ninety-nine
JVM学习笔记:三 本地方法接口、执行引擎
What should be paid attention to when establishing MES system? What benefits can it bring to the enterprise?
MPLS的原理与配置
What exactly is APS? You will know after reading the article