Bug #3237
fep-ha 网关 校验ip失效
Start date:
11/30/2023
Due date:
12/04/2023
% Done:
100%
Estimated time:
Defect version:
Description
fep-ha配置双机时,会在semodel.db下配置union表,在ip1,ip2配置两个ip,
网关程序启动后,查找本地的ip如果查找到配置的ip就认为自己为几号机器,
查找到ip1为1号机器,查找到ip2为2号机器,用于做双机高可用;
之前校验ip的函数,linux下代码默认校验前8个ip, 但现场的机器可能有多网卡ip不止8个;这样程序找不到ip就认为自己为0号机器;
如果两台机器都找不到ip,高可用会失败;
(windows版没有此问题)
修改:
将8个改为128个;
影响程序:
网关下:
em_daq,libmqttiot,fep_gateway,水泵plc,火警plc
Related issues
History
Updated by pengfei xu about 1 year ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100