Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/SoapService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class SoapService {
};
this.serviceInstance = soap.listen(this.webserver, this.serviceOptions);

if (this.config.Username) {
this.serviceInstance.authenticate = () => true;
}

this.serviceInstance.on('headers', (headers, methodName) => {
// Use the '=>' notation so 'this' refers to the class we are in
// ONVIF allows GetSystemDateAndTime to be sent with no authenticaton header
Expand Down