equal
deleted
inserted
replaced
23 end |
23 end |
24 |
24 |
25 -- TODO Things to test/handle: |
25 -- TODO Things to test/handle: |
26 -- Negative or bogus answers |
26 -- Negative or bogus answers |
27 -- No SRV records |
27 -- No SRV records |
|
28 -- No encryption offered |
28 |
29 |
29 function s2sout.try_connect(host_session, connect_host, connect_port, err) |
30 function s2sout.try_connect(host_session, connect_host, connect_port, err) |
30 local srv_hosts = host_session.srv_hosts; |
31 local srv_hosts = host_session.srv_hosts; |
31 local srv_choice = host_session.srv_choice; |
32 local srv_choice = host_session.srv_choice; |
32 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then |
33 if srv_hosts and srv_hosts.answer.secure and not srv_hosts[srv_choice].dane then |