File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ package scanner
2
2
3
3
import (
4
4
"bytes"
5
+ "crypto/tls"
5
6
"fmt"
6
7
"io"
8
+ "net/http"
7
9
"strings"
8
10
9
11
"github.com/brutella/dnssd"
@@ -43,6 +45,8 @@ func (s *Scanner) Scan() ([]byte, error) {
43
45
s .UpdateState (ScannerStateBusy )
44
46
45
47
cl := airscan .NewClientForService (s .DNSSDBrowseEntry )
48
+ transport := cl .HTTPClient .(* http.Client ).Transport .(* http.Transport )
49
+ transport .TLSClientConfig = & tls.Config {InsecureSkipVerify : true }
46
50
47
51
scannerCapabilities , err := cl .ScannerCapabilities ()
48
52
if err != nil {
@@ -54,7 +58,7 @@ func (s *Scanner) Scan() ([]byte, error) {
54
58
s .logger .Debugw ("Scanner capabilities" , "capabilities" , scannerCapabilities )
55
59
if scannerCapabilities .Adf != nil {
56
60
s .logger .Infoln ("ADF is available on selected scanner, so using it." )
57
- ss .InputSource = "ADF "
61
+ ss .InputSource = "Feeder "
58
62
}
59
63
60
64
scan , err := cl .Scan (ss )
You can’t perform that action at this time.
0 commit comments