Skip to content

Commit bf3da13

Browse files
committed
1
1 parent db75587 commit bf3da13

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

OpenFlowNodeRED/src/nodered/nodes/amqp_nodes.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { NoderedUtil } from "./NoderedUtil";
44
import { Logger } from "../../Logger";
55
import { amqp_consumer } from "../../amqp_consumer";
66
import { amqp_publisher } from "../../amqp_publisher";
7+
import { Config } from "../../Config";
78

89
export interface Iamqp_connection {
910
host: string;
@@ -59,7 +60,8 @@ export class amqp_consumer_node {
5960
if (!NoderedUtil.IsNullEmpty(username) && !NoderedUtil.IsNullEmpty(password)) {
6061
this.host = "amqp://" + username + ":" + password + "@" + this.host;
6162
} else {
62-
this.host = "amqp://" + this.host;
63+
// this.host = "amqp://" + this.host;
64+
this.host = Config.amqp_url;
6365
}
6466
this.connect();
6567
} catch (error) {
@@ -140,7 +142,8 @@ export class amqp_publisher_node {
140142
if (!NoderedUtil.IsNullEmpty(username) && !NoderedUtil.IsNullEmpty(password)) {
141143
this.host = "amqp://" + username + ":" + password + "@" + this.host;
142144
} else {
143-
this.host = "amqp://" + this.host;
145+
// this.host = "amqp://" + this.host;
146+
this.host = Config.amqp_url;
144147
}
145148
this.connect();
146149
} catch (error) {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.210
1+
0.0.211

0 commit comments

Comments
 (0)