EEBus: allow limiting network interfaces (#1692)
The `eebus` configuration now has an option `interfaces` which expects a list of network interface names. The EEBUS Server will then only use this network interface for connections to clients
This commit is contained in:
parent
40cf05de03
commit
8facebd7ad
3 changed files with 5 additions and 3 deletions
|
|
@ -41,6 +41,7 @@ func NewEEBus(other map[string]interface{}) (*EEBus, error) {
|
|||
cc := struct {
|
||||
Uri string
|
||||
ShipID string
|
||||
Interfaces []string
|
||||
Certificate struct {
|
||||
Public, Private []byte
|
||||
}
|
||||
|
|
@ -75,6 +76,7 @@ func NewEEBus(other map[string]interface{}) (*EEBus, error) {
|
|||
Path: "/ship/",
|
||||
Certificate: cert,
|
||||
ID: id,
|
||||
Interfaces: cc.Interfaces,
|
||||
Brand: details.BrandName,
|
||||
Model: details.DeviceCode,
|
||||
Type: string(model.DeviceTypeEnumTypeEnergyManagementSystem),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue