Skip to content

Commit

Permalink
(fix) only listen on ipv4 for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Sep 28, 2023
1 parent 4f048df commit 16f14f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ type Integration struct {
func NewIntegration(config Config) (*Integration, error) {

i := Integration{
Config: config,
listenAddress: fmt.Sprintf(":%d", config.ListenPort),
Config: config,
// TODO: for the moment, only IPv4, as somehow the behaviour seems strange when both.. not investigatet though
listenAddress: fmt.Sprintf("0.0.0.0::%d", config.ListenPort),
deviceState: DisconnectedDeviceState,
DeviceId: "", // I think device_id is not yet implemented in Remote TV, used for multi-device integrati

Expand Down Expand Up @@ -92,6 +93,7 @@ func (i *Integration) Run() error {
}

log.Debug("Listen for new Websocket connection")

log.Fatal(http.ListenAndServe(i.listenAddress, nil))

return nil
Expand Down

0 comments on commit 16f14f6

Please sign in to comment.