commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2024-04-08 17:39:34 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.1905 (New) Package is "xmpp-dns" Mon Apr 8 17:39:34 2024 rev:11 rq:1166081 version:0.3.11 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2023-12-28 23:02:20.100353749 +0100 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.1905/xmpp-dns.changes 2024-04-08 17:51:55.184905419 +0200 @@ -1,0 +2,6 @@ +Mon Apr 8 06:16:00 UTC 2024 - Michael Vetter + +- Update to 0.3.11: + * Properly detect all stream errors. + +--- Old: xmpp-dns-0.3.10.tar.gz New: xmpp-dns-0.3.11.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.YSQZTn/_old 2024-04-08 17:51:55.664923135 +0200 +++ /var/tmp/diff_new_pack.YSQZTn/_new 2024-04-08 17:51:55.668923283 +0200 @@ -1,7 +1,7 @@ # # spec file for package xmpp-dns # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.10 +Version:0.3.11 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.YSQZTn/_old 2024-04-08 17:51:55.692924169 +0200 +++ /var/tmp/diff_new_pack.YSQZTn/_new 2024-04-08 17:51:55.696924316 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.10 +v0.3.11 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt --- old/vendor/modules.txt 2023-12-26 09:09:58.0 +0100 +++ new/vendor/modules.txt 2024-04-08 08:15:36.0 +0200 @@ -1,6 +1,6 @@ # github.com/pborman/getopt/v2 v2.1.0 ## explicit github.com/pborman/getopt/v2 -# salsa.debian.org/mdosch/xmppsrv v0.2.5 +# salsa.debian.org/mdosch/xmppsrv v0.2.6 ## explicit salsa.debian.org/mdosch/xmppsrv diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md --- old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2023-12-26 09:09:58.0 +0100 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2024-04-08 08:15:36.0 +0200 @@ -1,12 +1,16 @@ # Changelog +## [0.2.6] 2024-01-19 +### Changed +- Don't return an error if either of the xmpp or xmpps look ups returns a result. + ## [0.2.5] 2023-03-27 ### Changed - Don't use CNAMES of xmpp domain for xmpp SRV lookups. ## [0.2.4] ### Changed -- The changes are the same as in 0.2.3 but a new release is created as not all changes were in 0.2.3 due to a misstake in the release process. +- The changes are the same as in 0.2.3 but a new release is created as not all changes were in 0.2.3 due to a mistake in the release process. ## [0.2.3] ### Added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/LICENSE new/vendor/salsa.debian.org/mdosch/xmppsrv/LICENSE --- old/vendor/salsa.debian.org/mdosch/xmppsrv/LICENSE 2023-12-26 09:09:58.0 +0100 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/LICENSE 2024-04-08 08:15:36.0 +0200 @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2021, Martin Dosch +Copyright (c) Martin Dosch All rights reserved. Redistribution and use in source and binary forms, with or without diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go --- old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2023-12-26 09:09:58.0 +0100 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2024-04-08 08:15:36.0 +0200 @@ -1,4 +1,4 @@ -// Copyright 2021 Martin Dosch. +// Copyright Martin Dosch. // Use of this source code is governed by the BSD-2-clause // license that can be found in the LICENSE file. @@ -141,7 +141,8 @@ } func getSRVDoT(server string, srvType string, - resolver string) ([]SRV, error) { + resolver string, +) ([]SRV, error) { var records []SRV var err error
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2023-12-28 23:00:39 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.28375 (New) Package is "xmpp-dns" Thu Dec 28 23:00:39 2023 rev:10 rq:1135149 version:0.3.10 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2023-11-13 22:21:30.948927515 +0100 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.28375/xmpp-dns.changes 2023-12-28 23:02:20.100353749 +0100 @@ -1,0 +2,8 @@ +Tue Dec 26 08:10:24 UTC 2023 - Michael Vetter + +- Update to 0.3.10: + * Fix stream initialization bug with StartTLS + * Further improve StartTLS stream initialization. + * Improve error messages when server closes connection. + +--- Old: xmpp-dns-0.3.9.tar.gz New: xmpp-dns-0.3.10.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.09XCCl/_old 2023-12-28 23:02:20.668374509 +0100 +++ /var/tmp/diff_new_pack.09XCCl/_new 2023-12-28 23:02:20.672374655 +0100 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.9 +Version:0.3.10 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.09XCCl/_old 2023-12-28 23:02:20.704375825 +0100 +++ /var/tmp/diff_new_pack.09XCCl/_new 2023-12-28 23:02:20.708375971 +0100 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.9 +v0.3.10 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.9.tar.gz -> xmpp-dns-0.3.10.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.9/CHANGELOG.md new/xmpp-dns-0.3.10/CHANGELOG.md --- old/xmpp-dns-0.3.9/CHANGELOG.md 2023-11-09 19:15:41.0 +0100 +++ new/xmpp-dns-0.3.10/CHANGELOG.md2023-12-25 19:36:26.0 +0100 @@ -1,5 +1,11 @@ # Changelog +## [0.3.10] 2023-12-25 +### Changed +- Fix stream initialization bug with StartTLS (thanks moparisthebest). +- Further improve StartTLS stream initialization. +- Improve error messages when server closes connection. + ## [0.3.9] 2023-11-09 ### Changed - Also apply timeout when server doesn't reply to StartTLS initialisation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.9/main.go new/xmpp-dns-0.3.10/main.go --- old/xmpp-dns-0.3.9/main.go 2023-11-09 19:15:41.0 +0100 +++ new/xmpp-dns-0.3.10/main.go 2023-12-25 19:36:26.0 +0100 @@ -21,7 +21,7 @@ ) const ( - version = "0.3.9" + version = "0.3.10" ) // Created with https://github.com/miku/zek @@ -329,7 +329,7 @@ } startStream := "\n" + tlsConfig.ServerName + "' version='1.0'>" _, err := c.Write([]byte(startStream)) if err != nil { fmt.Println("StartTLS:", statusNOK) @@ -357,7 +357,7 @@ fmt.Println("Server sent policy-violation:", serverStreamError.Error.Text.Text) } else { - fmt.Println("Server sent EOF.") + fmt.Println("Server closed connection.") } } else { fmt.Println(err) @@ -383,7 +383,7 @@ fmt.Println("Server sent failure.") return } - _, err = c.Write([]byte("\n")) + _, err = c.Write([]byte("")) if err != nil { fmt.Println("StartTLS:", statusNOK) fmt.Println(err) @@ -400,7 +400,7 @@ fmt.Println("Server sent policy-violation:", serverStreamError.Error.Text.Text) } else { - fmt.Println("Server sent EOF.") + fmt.Println("Server closed connection.") } } else { fmt.Println(err) @@ -423,7 +423,7 @@ switch err.Error() { case "EOF": fmt.Println("StartTLS:", statusNOK) - fmt.Println("Received EOF during handshake.") + fmt.Println("Server closed connection
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2023-11-13 22:18:51 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.17445 (New) Package is "xmpp-dns" Mon Nov 13 22:18:51 2023 rev:9 rq:1125121 version:0.3.9 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2023-08-23 14:59:44.066217571 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.17445/xmpp-dns.changes 2023-11-13 22:21:30.948927515 +0100 @@ -1,0 +2,7 @@ +Fri Nov 10 19:29:21 UTC 2023 - Michael Vetter + +- Update to 0.3.9: + * Also apply timeout when server doesn't reply to StartTLS +initialisation. + +--- Old: xmpp-dns-0.3.8.tar.gz New: xmpp-dns-0.3.9.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.NLAUFb/_old 2023-11-13 22:21:31.476946956 +0100 +++ /var/tmp/diff_new_pack.NLAUFb/_new 2023-11-13 22:21:31.476946956 +0100 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.8 +Version:0.3.9 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.NLAUFb/_old 2023-11-13 22:21:31.504947987 +0100 +++ /var/tmp/diff_new_pack.NLAUFb/_new 2023-11-13 22:21:31.508948135 +0100 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.8 +v0.3.9 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.8.tar.gz -> xmpp-dns-0.3.9.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.8/CHANGELOG.md new/xmpp-dns-0.3.9/CHANGELOG.md --- old/xmpp-dns-0.3.8/CHANGELOG.md 2023-08-22 20:16:10.0 +0200 +++ new/xmpp-dns-0.3.9/CHANGELOG.md 2023-11-09 19:15:41.0 +0100 @@ -1,5 +1,9 @@ # Changelog +## [0.3.9] 2023-11-09 +### Changed +- Also apply timeout when server doesn't reply to StartTLS initialisation. + ## [0.3.8] 2023-08-22 ### Changed - Don't look up IPs and don't try to connect if the SRV records target is ".". diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.8/README.md new/xmpp-dns-0.3.9/README.md --- old/xmpp-dns-0.3.8/README.md2023-08-22 20:16:10.0 +0200 +++ new/xmpp-dns-0.3.9/README.md2023-11-09 19:15:41.0 +0100 @@ -26,6 +26,12 @@ go install salsa.debian.org/mdosch/xmpp-dns@latest ``` +Current development version: + +``` +go install salsa.debian.org/mdosch/xmpp-dns@master +``` + The binary will be in your `$GOBIN` (usually `~/go/bin/`). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.8/main.go new/xmpp-dns-0.3.9/main.go --- old/xmpp-dns-0.3.8/main.go 2023-08-22 20:16:10.0 +0200 +++ new/xmpp-dns-0.3.9/main.go 2023-11-09 19:15:41.0 +0100 @@ -21,7 +21,7 @@ ) const ( - version = "0.3.8" + version = "0.3.9" ) // Created with https://github.com/miku/zek @@ -336,23 +336,45 @@ fmt.Println(err) return } - buf := make([]byte, 4096) - _, err = c.Read(buf) - if err != nil { - fmt.Println("StartTLS:", statusNOK) - if err.Error() == "EOF" { - // TODO: Properly check for all possible server errors - // instead of only checking for "policy-violation". - err = xml.Unmarshal(buf, ) - if err == nil { - fmt.Println("Server sent policy-violation:", - serverStreamError.Error.Text.Text) - } else { - fmt.Println("Server sent EOF.") + var buf []byte + bufChan := make(chan []byte) + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + go func() { + buf := make([]byte, 4096) + _, err = c.Read(buf) + if err != nil { + select { + case <-ctx.Done(): + return + default: + fmt.Println("StartTLS:", statusNOK) + if err.Error() == "EOF" { + // TODO: Properly check for all possible server errors + // instead of only checking for "policy-violation". +
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2023-08-23 14:58:34 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.1766 (New) Package is "xmpp-dns" Wed Aug 23 14:58:34 2023 rev:8 rq:1105337 version:0.3.8 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2023-08-17 19:44:57.398947736 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.1766/xmpp-dns.changes 2023-08-23 14:59:44.066217571 +0200 @@ -1,0 +2,7 @@ +Wed Aug 23 03:41:00 UTC 2023 - Michael Vetter + +- Update to 0.3.8: + * Don't look up IPs and don't try to connect if the SRV records +target is ".". + +--- Old: xmpp-dns-0.3.7.tar.gz New: xmpp-dns-0.3.8.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.cetN3F/_old 2023-08-23 14:59:45.130219474 +0200 +++ /var/tmp/diff_new_pack.cetN3F/_new 2023-08-23 14:59:45.154219516 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.7 +Version:0.3.8 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.cetN3F/_old 2023-08-23 14:59:45.226219645 +0200 +++ /var/tmp/diff_new_pack.cetN3F/_new 2023-08-23 14:59:45.234219660 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.7 +v0.3.8 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.7.tar.gz -> xmpp-dns-0.3.8.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.7/CHANGELOG.md new/xmpp-dns-0.3.8/CHANGELOG.md --- old/xmpp-dns-0.3.7/CHANGELOG.md 2023-08-15 19:05:51.0 +0200 +++ new/xmpp-dns-0.3.8/CHANGELOG.md 2023-08-22 20:16:10.0 +0200 @@ -1,6 +1,10 @@ # Changelog -## [0.3.7] +## [0.3.8] 2023-08-22 +### Changed +- Don't look up IPs and don't try to connect if the SRV records target is ".". + +## [0.3.7] 2023-08-15 ### Added - Show reason for denied s2s due to policy-violation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.7/main.go new/xmpp-dns-0.3.8/main.go --- old/xmpp-dns-0.3.7/main.go 2023-08-15 19:05:51.0 +0200 +++ new/xmpp-dns-0.3.8/main.go 2023-08-22 20:16:10.0 +0200 @@ -21,7 +21,7 @@ ) const ( - version = "0.3.7" + version = "0.3.8" ) // Created with https://github.com/miku/zek @@ -229,7 +229,7 @@ fmt.Println() } printRecord(record) - if verbose { + if verbose && record.Target != "." { printIP(record, ipv4, ipv6, test, tlsConfig, timeout) } }
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2023-08-17 19:44:41 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.1766 (New) Package is "xmpp-dns" Thu Aug 17 19:44:41 2023 rev:7 rq:1104315 version:0.3.7 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2023-03-28 17:50:55.311425466 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.1766/xmpp-dns.changes 2023-08-17 19:44:57.398947736 +0200 @@ -1,0 +2,8 @@ +Thu Aug 17 07:25:34 UTC 2023 - Michael Vetter + +- Update to 0.3.7: + * Show reason for denied s2s due to policy-violation. + * Apply timeout to TLS handshake as well instead of only for the +tcp connection. + +--- Old: xmpp-dns-0.3.6.tar.gz New: xmpp-dns-0.3.7.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.NHLE0C/_old 2023-08-17 19:44:58.390949591 +0200 +++ /var/tmp/diff_new_pack.NHLE0C/_new 2023-08-17 19:44:58.394949599 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.6 +Version:0.3.7 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.NHLE0C/_old 2023-08-17 19:44:58.442949688 +0200 +++ /var/tmp/diff_new_pack.NHLE0C/_new 2023-08-17 19:44:58.450949704 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.6 +v0.3.7 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.6.tar.gz -> xmpp-dns-0.3.7.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.6/CHANGELOG.md new/xmpp-dns-0.3.7/CHANGELOG.md --- old/xmpp-dns-0.3.6/CHANGELOG.md 2023-03-27 20:12:24.0 +0200 +++ new/xmpp-dns-0.3.7/CHANGELOG.md 2023-08-15 19:05:51.0 +0200 @@ -1,12 +1,19 @@ # Changelog +## [0.3.7] +### Added +- Show reason for denied s2s due to policy-violation. + +### Changed +- Apply timeout to TLS handshake as well instead of only for the tcp connection. + ## [0.3.6] 2023-03-27 ### Changed - Remove `println()` added for debugging. ## [0.3.5] 2023-03-27 ### Changed -- Don't use CNAME of xmpp server domain for SRV lookups (via xmppsrv UNRELEASED). +- Don't use CNAME of xmpp server domain for SRV lookups (via xmppsrv 0.2.5). ## [0.3.4] ### Changed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.6/LICENSE new/xmpp-dns-0.3.7/LICENSE --- old/xmpp-dns-0.3.6/LICENSE 2023-03-27 20:12:24.0 +0200 +++ new/xmpp-dns-0.3.7/LICENSE 2023-08-15 19:05:51.0 +0200 @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2021, Martin Dosch +Copyright (c) Martin Dosch All rights reserved. Redistribution and use in source and binary forms, with or without diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.6/go.sum new/xmpp-dns-0.3.7/go.sum --- old/xmpp-dns-0.3.6/go.sum 2023-03-27 20:12:24.0 +0200 +++ new/xmpp-dns-0.3.7/go.sum 2023-08-15 19:05:51.0 +0200 @@ -1,8 +1,4 @@ github.com/pborman/getopt/v2 v2.1.0 h1:eNfR+r+dWLdWmV8g5OlpyrTYHkhVNxHBdN2cCrJmOEA= github.com/pborman/getopt/v2 v2.1.0/go.mod h1:4NtW75ny4eBw9fO1bhtNdYTlZKYX5/tBLtsOpwKIKd0= -salsa.debian.org/mdosch/xmppsrv v0.2.4 h1:ZroUkfml+kxgO+BFocVoVvYqJgk03D9oT1alXoFIyE4= -salsa.debian.org/mdosch/xmppsrv v0.2.4/go.mod h1:udWXnWFa9zkcyN9YSB/u44BCnnRDpeQ0eDy3MVLjHZQ= -salsa.debian.org/mdosch/xmppsrv v0.2.5-0.20230327161640-c09eb51c5bf4 h1:3B6LjDKiWkhe2ugYxNrKENAmbBq4X/PYPcdxAx8XaNM= -salsa.debian.org/mdosch/xmppsrv v0.2.5-0.20230327161640-c09eb51c5bf4/go.mod h1:udWXnWFa9zkcyN9YSB/u44BCnnRDpeQ0eDy3MVLjHZQ= salsa.debian.org/mdosch/xmppsrv v0.2.5 h1:ACPk8EhmCAUMl59TnGe5kvvwSnW065CJrhN7uvt25xY= salsa.debian.org/mdosch/xmppsrv v0.2.5/go.mod h1:udWXnWFa9zkcyN9YSB/u44BCnnRDpeQ0eDy3MVLjHZQ= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.6/main.go new/xmpp-dns-0.3.7/main.go --- old/xmpp-dns-0.3.6/main.go 2023-03-27 20:12:24.0 +0200 +++ new/xmpp-dns-0.3.7/main.go 2023-08-15 19:05:51.0 +0200 @@ -1,10 +1,11 @@ -// Copyright 2021 Martin Dosch. +// Copyright Martin Dosch. // Use of this source code is governed by the BSD-2-clause // license that can be found in the LICENSE file. package main import ( + "context" "crypto/tls" "encoding/xml" "fmt" @@ -20,9 +21,34 @@ )
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2023-03-28 17:50:53 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.31432 (New) Package is "xmpp-dns" Tue Mar 28 17:50:53 2023 rev:6 rq:1074883 version:0.3.6 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2022-10-28 19:32:30.947529621 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.31432/xmpp-dns.changes 2023-03-28 17:50:55.311425466 +0200 @@ -1,0 +2,13 @@ +Tue Mar 28 06:50:51 UTC 2023 - Michael Vetter + +- Update to 0.3.6: + * Remove println() added for debugging. + +--- +Tue Mar 28 06:50:12 UTC 2023 - Michael Vetter + +- Update to 0.3.5: + * Don't use CNAME of xmpp server domain for SRV lookups +(via xmppsrv UNRELEASED). + +--- Old: xmpp-dns-0.3.4.tar.gz New: xmpp-dns-0.3.6.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.ZpIVjq/_old 2023-03-28 17:50:55.815427897 +0200 +++ /var/tmp/diff_new_pack.ZpIVjq/_new 2023-03-28 17:50:55.823427936 +0200 @@ -1,7 +1,7 @@ # # spec file for package xmpp-dns # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.4 +Version:0.3.6 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.ZpIVjq/_old 2023-03-28 17:50:55.855428090 +0200 +++ /var/tmp/diff_new_pack.ZpIVjq/_new 2023-03-28 17:50:55.859428110 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.4 +v0.3.6 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt --- old/vendor/modules.txt 2022-10-28 15:35:18.0 +0200 +++ new/vendor/modules.txt 2023-03-28 08:51:24.0 +0200 @@ -1,6 +1,6 @@ # github.com/pborman/getopt/v2 v2.1.0 ## explicit github.com/pborman/getopt/v2 -# salsa.debian.org/mdosch/xmppsrv v0.2.4 +# salsa.debian.org/mdosch/xmppsrv v0.2.5 ## explicit salsa.debian.org/mdosch/xmppsrv diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md --- old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2022-10-28 15:35:18.0 +0200 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2023-03-28 08:51:24.0 +0200 @@ -1,5 +1,9 @@ # Changelog +## [0.2.5] 2023-03-27 +### Changed +- Don't use CNAMES of xmpp domain for xmpp SRV lookups. + ## [0.2.4] ### Changed - The changes are the same as in 0.2.3 but a new release is created as not all changes were in 0.2.3 due to a misstake in the release process. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go --- old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2022-10-28 15:35:18.0 +0200 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2023-03-28 08:51:24.0 +0200 @@ -226,11 +226,6 @@ // LookupXmppServer returns the xmpp-server SRV records. func LookupXmppServer(server string) ([]SRV, error) { - // Look up CNAME - cname, err := getCNAME(server) - if err == nil { - server = cname - } // Look up xmpp-server SRV records, err := getSRV(server, "xmpp-server") return records, err @@ -238,28 +233,15 @@ // LookupXmppServer returns the xmpp-server SRV records. func (c *Config) LookupXmppServer(server string) ([]SRV, error) { - var cname string var records []SRV var err error // Look up xmpp-server SRV switch { case c.Resolver == "": - cname, err = getCNAME(server) - if err == nil { - server = cname - } records, err = getSRV(server, "xmpp-server") case c.Resolver != "" && !c.DoT: - cname, err = getCNAMECustomResolver(server, c.Resolver) - if err == nil { -
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2022-10-28 19:32:02 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275 (New) Package is "xmpp-dns" Fri Oct 28 19:32:02 2022 rev:5 rq:1031969 version:0.3.4 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2022-10-19 13:17:59.757261764 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275/xmpp-dns.changes 2022-10-28 19:32:30.947529621 +0200 @@ -1,0 +2,8 @@ +Fri Oct 28 13:35:31 UTC 2022 - Michael Vetter + +- Update to 0.3.4: + * Fix namespace for xmpps-client stream opening (jabber:client +instead of jabber:server). + * Add from attribute for server-to-server connection test. + +--- Old: xmpp-dns-0.3.3.tar.gz New: xmpp-dns-0.3.4.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.6RVOhC/_old 2022-10-28 19:32:31.375531767 +0200 +++ /var/tmp/diff_new_pack.6RVOhC/_new 2022-10-28 19:32:31.379531787 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.3 +Version:0.3.4 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.6RVOhC/_old 2022-10-28 19:32:31.419531988 +0200 +++ /var/tmp/diff_new_pack.6RVOhC/_new 2022-10-28 19:32:31.423532007 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.3 +v0.3.4 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.3.tar.gz -> xmpp-dns-0.3.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.3/CHANGELOG.md new/xmpp-dns-0.3.4/CHANGELOG.md --- old/xmpp-dns-0.3.3/CHANGELOG.md 2022-10-16 11:35:40.0 +0200 +++ new/xmpp-dns-0.3.4/CHANGELOG.md 2022-10-28 14:23:00.0 +0200 @@ -1,5 +1,10 @@ # Changelog +## [0.3.4] +### Changed +- Fix namespace for xmpps-client stream opening (`jabber:client` instead of `jabber:server`). +- Add `from` attribute for server-to-server connection test. + ## [0.3.3] ### Changed - Fix wrong timeout parsing on some systems. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.3/main.go new/xmpp-dns-0.3.4/main.go --- old/xmpp-dns-0.3.3/main.go 2022-10-16 11:35:40.0 +0200 +++ new/xmpp-dns-0.3.4/main.go 2022-10-28 14:23:00.0 +0200 @@ -20,7 +20,7 @@ ) const ( - version = "0.3.3" + version = "0.3.4" ) var ( @@ -252,7 +252,7 @@ c.Close() case "xmpps-client": tlsConfig.NextProtos = []string{"xmpp-client"} - directTLS("server", c, tlsConfig) + directTLS("client", c, tlsConfig) c.Close() case "xmpp-server": startTLS("server", c, tlsConfig) @@ -298,8 +298,15 @@ serverProceed Proceed serverFailure Failure ) - startStream := "\n" + var from string + if recordType == "server" { + from = " from='xmpp-dns.mdosch.de'" + } else { + from = "" + } + startStream := "\n" _, err := c.Write([]byte(startStream)) if err != nil { fmt.Println("StartTLS:", statusNOK) @@ -378,8 +385,15 @@ fmt.Println(err) } } else { - startStream := "\n" + var from string + if recordType == "server" { + from = " from='xmpp-dns.mdosch.de'" + } else { + from = "" + } + startStream := "\n" _, err := c.Write([]byte(startStream)) if err != nil { fmt.Println("TLS:", statusNOK)
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2022-10-19 13:17:33 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275 (New) Package is "xmpp-dns" Wed Oct 19 13:17:33 2022 rev:4 rq:1029735 version:0.3.3 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2022-10-08 01:26:18.598378962 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275/xmpp-dns.changes 2022-10-19 13:17:59.757261764 +0200 @@ -1,0 +2,6 @@ +Tue Oct 18 12:04:13 UTC 2022 - Michael Vetter + +- Update to 0.3.3: + * Fix wrong timeout parsing on some systems. + +--- Old: xmpp-dns-0.3.2.tar.gz New: xmpp-dns-0.3.3.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.y7rTRc/_old 2022-10-19 13:18:01.021264384 +0200 +++ /var/tmp/diff_new_pack.y7rTRc/_new 2022-10-19 13:18:01.025264392 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.2 +Version:0.3.3 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.y7rTRc/_old 2022-10-19 13:18:01.069264483 +0200 +++ /var/tmp/diff_new_pack.y7rTRc/_new 2022-10-19 13:18:01.073264492 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.2 +v0.3.3 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.2.tar.gz -> xmpp-dns-0.3.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.2/CHANGELOG.md new/xmpp-dns-0.3.3/CHANGELOG.md --- old/xmpp-dns-0.3.2/CHANGELOG.md 2022-10-06 12:43:07.0 +0200 +++ new/xmpp-dns-0.3.3/CHANGELOG.md 2022-10-16 11:35:40.0 +0200 @@ -1,5 +1,9 @@ # Changelog +## [0.3.3] +### Changed +- Fix wrong timeout parsing on some systems. + ## [0.3.2] ### Changed - Fix detection of XMPP support when using direct TLS and ALPN. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.2/main.go new/xmpp-dns-0.3.3/main.go --- old/xmpp-dns-0.3.2/main.go 2022-10-06 12:43:07.0 +0200 +++ new/xmpp-dns-0.3.3/main.go 2022-10-16 11:35:40.0 +0200 @@ -20,7 +20,7 @@ ) const ( - version = "0.3.2" + version = "0.3.3" ) var ( @@ -116,7 +116,7 @@ } // Timeout - timeout := time.Duration(*flagTimeout * 10) + timeout := time.Duration(*flagTimeout) * time.Second // Set TLS config var tlsConfig tls.Config
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2022-10-08 01:25:49 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275 (New) Package is "xmpp-dns" Sat Oct 8 01:25:49 2022 rev:3 rq:1008680 version:0.3.2 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2022-08-22 12:02:03.945360734 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.2275/xmpp-dns.changes 2022-10-08 01:26:18.598378962 +0200 @@ -1,0 +2,6 @@ +Fri Oct 7 07:29:00 UTC 2022 - Michael Vetter + +- Update to 0.3.2: + * Fix detection of XMPP support when using direct TLS and ALPN. + +--- Old: xmpp-dns-0.3.1.tar.gz New: xmpp-dns-0.3.2.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.1rH2el/_old 2022-10-08 01:26:19.738381577 +0200 +++ /var/tmp/diff_new_pack.1rH2el/_new 2022-10-08 01:26:19.742381586 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.1 +Version:0.3.2 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.1rH2el/_old 2022-10-08 01:26:19.770381650 +0200 +++ /var/tmp/diff_new_pack.1rH2el/_new 2022-10-08 01:26:19.774381659 +0200 @@ -3,7 +3,7 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.1 +v0.3.2 @PARENT_TAG@ disable v(.*) ++ vendor.tar.gz ++ ++ xmpp-dns-0.3.1.tar.gz -> xmpp-dns-0.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.1/CHANGELOG.md new/xmpp-dns-0.3.2/CHANGELOG.md --- old/xmpp-dns-0.3.1/CHANGELOG.md 2022-08-21 12:45:40.0 +0200 +++ new/xmpp-dns-0.3.2/CHANGELOG.md 2022-10-06 12:43:07.0 +0200 @@ -1,5 +1,9 @@ # Changelog +## [0.3.2] +### Changed +- Fix detection of XMPP support when using direct TLS and ALPN. + ## [0.3.1] ### Changed - Print error details if SRV lookup fails. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.3.1/main.go new/xmpp-dns-0.3.2/main.go --- old/xmpp-dns-0.3.1/main.go 2022-08-21 12:45:40.0 +0200 +++ new/xmpp-dns-0.3.2/main.go 2022-10-06 12:43:07.0 +0200 @@ -12,6 +12,7 @@ "net" "os" "runtime" + "strings" "time" "github.com/pborman/getopt/v2"// BSD-3-Clause @@ -19,7 +20,7 @@ ) const ( - version = "0.3.1" + version = "0.3.2" ) var ( @@ -250,16 +251,16 @@ startTLS("client", c, tlsConfig) c.Close() case "xmpps-client": - c.Close() tlsConfig.NextProtos = []string{"xmpp-client"} - directTLS(server, transport, tlsConfig) + directTLS("server", c, tlsConfig) + c.Close() case "xmpp-server": startTLS("server", c, tlsConfig) c.Close() case "xmpps-server": - c.Close() tlsConfig.NextProtos = []string{"xmpp-server"} - directTLS(server, transport, tlsConfig) + directTLS("server", c, tlsConfig) + c.Close() default: c.Close() } @@ -287,6 +288,7 @@ Textstring `xml:",chardata"` Xmlns string `xml:"xmlns,attr"` } + // Created with https://github.com/miku/zek type Failure struct { XMLName xml.Name `xml:"failure"` Textstring `xml:",chardata"` @@ -364,20 +366,48 @@ } } -func directTLS(server string, transport string, tlsConfig *tls.Config) { - c, err := tls.Dial(transport, server, tlsConfig) +func directTLS(recordType string, conn net.Conn, tlsConfig *tls.Config) { + c := tls.Client(conn, tlsConfig) + err := c.Handshake()
commit xmpp-dns for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2022-08-22 12:02:02 Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.2083 (New) Package is "xmpp-dns" Mon Aug 22 12:02:02 2022 rev:2 rq:998585 version:0.3.1 Changes: --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes2022-08-05 19:51:51.789589240 +0200 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.2083/xmpp-dns.changes 2022-08-22 12:02:03.945360734 +0200 @@ -1,0 +2,9 @@ +Mon Aug 22 08:39:21 UTC 2022 - Michael Vetter + +- Update to 0.3.1: + * Print error details if SRV lookup fails. + * Print error details if IP lookup fails. + * Respect CNAME records. + * Detect CNAME loops (max. 5 CNAMEs) (via xmppsrv >= 0.2.4) + +--- Old: xmpp-dns-0.3.0.tar.gz New: xmpp-dns-0.3.1.tar.gz Other differences: -- ++ xmpp-dns.spec ++ --- /var/tmp/diff_new_pack.Je1deb/_old 2022-08-22 12:02:04.693362379 +0200 +++ /var/tmp/diff_new_pack.Je1deb/_new 2022-08-22 12:02:04.697362388 +0200 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version:0.3.0 +Version:0.3.1 Release:0 Summary:A CLI tool to check XMPP SRV records License:BSD-2-Clause ++ _service ++ --- /var/tmp/diff_new_pack.Je1deb/_old 2022-08-22 12:02:04.737362476 +0200 +++ /var/tmp/diff_new_pack.Je1deb/_new 2022-08-22 12:02:04.741362485 +0200 @@ -3,9 +3,9 @@ https://salsa.debian.org/mdosch/xmpp-dns.git git .git -v0.3.0 +v0.3.1 @PARENT_TAG@ -enable +disable v(.*) ++ vendor.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt --- old/vendor/modules.txt 2022-08-04 13:29:21.0 +0200 +++ new/vendor/modules.txt 2022-08-22 10:39:04.0 +0200 @@ -1,6 +1,6 @@ # github.com/pborman/getopt/v2 v2.1.0 ## explicit github.com/pborman/getopt/v2 -# salsa.debian.org/mdosch/xmppsrv v0.2.2 +# salsa.debian.org/mdosch/xmppsrv v0.2.4 ## explicit salsa.debian.org/mdosch/xmppsrv diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/.gitlab-ci.yml new/vendor/salsa.debian.org/mdosch/xmppsrv/.gitlab-ci.yml --- old/vendor/salsa.debian.org/mdosch/xmppsrv/.gitlab-ci.yml 2022-08-04 13:29:21.0 +0200 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/.gitlab-ci.yml 2022-08-22 10:39:04.0 +0200 @@ -38,4 +38,4 @@ - tags script: - | - release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG --description="`cat CHANGELOG.md`" + release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG --description="`head -n $(expr "$(grep -nm2 "^## " CHANGELOG.md|awk '(NR>1) {print $1}'|cut -f1 -d:) - 2"|bc) CHANGELOG.md`" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md --- old/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2022-08-04 13:29:21.0 +0200 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/CHANGELOG.md 2022-08-22 10:39:04.0 +0200 @@ -1,5 +1,18 @@ # Changelog +## [0.2.4] +### Changed +- The changes are the same as in 0.2.3 but a new release is created as not all changes were in 0.2.3 due to a misstake in the release process. + +## [0.2.3] +### Added +- Add CNAME lookup. + +### Changed +- Check resolver IP for validity. +- Improve error strings. +- Always return the error if one of the lookups failed. + ## [0.2.2] ### Changed - Added error handling for wrong resolver and DoT configuration. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go --- old/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2022-08-04 13:29:21.0 +0200 +++ new/vendor/salsa.debian.org/mdosch/xmppsrv/xmppsrv.go 2022-08-22 10:39:04.0 +0200 @@ -8,6 +8,7 @@ "context" "crypto/tls" "errors" + "fmt" "math/rand" "net" "sort" @@ -47,6 +48,98 @@ return o[i].Priority < o[j].Priority } +func getCNAME(server string) (string, error) { + var cname string + // Lookup CNAME + for i := 0; i <= 5; i++ { + cname, err := net.LookupCNAME(server) + // Return the