File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const logger = getLogger("ontime");
77
88interface OntimeInfo {
99 networkInterfaces : unknown [ ] ;
10- version : number ;
10+ version : number | string ;
1111 serverPort : number ;
1212 osc : unknown ;
1313}
@@ -66,8 +66,14 @@ export class OntimeClient {
6666 { cause : e } ,
6767 ) ;
6868 }
69- if ( info . version !== 2 ) {
70- throw new Error ( `Ontime at ${ host } is not version 2` ) ;
69+ if ( typeof info . version === "number" ) {
70+ if ( info . version !== 2 ) {
71+ throw new Error ( `Ontime at ${ host } is not version 2` ) ;
72+ }
73+ } else {
74+ if ( info . version [ 0 ] !== "2" ) {
75+ throw new Error ( `Ontime at ${ host } is not version 2` ) ;
76+ }
7177 }
7278 const result = new OntimeClient ( host ) ;
7379 result . got = client ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ services:
6060 ]
6161
6262 ontime :
63- image : getontime/ontime:v2.3.9
63+ image : getontime/ontime:v2.28.17
6464 ports :
6565 - " 4001:4001"
6666 volumes :
You can’t perform that action at this time.
0 commit comments