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:
Andreas Linde 2021-10-02 17:16:02 +02:00 • committed by GitHub
parent 40cf05de03
commit 8facebd7ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -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),