File tree Expand file tree Collapse file tree
OpenFlowNodeRED/src/nodered/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { NoderedUtil } from "./NoderedUtil";
44import { Logger } from "../../Logger" ;
55import { amqp_consumer } from "../../amqp_consumer" ;
66import { amqp_publisher } from "../../amqp_publisher" ;
7+ import { Config } from "../../Config" ;
78
89export 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 ) {
Original file line number Diff line number Diff line change 1- 0.0.210
1+ 0.0.211
You can’t perform that action at this time.
0 commit comments