]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
config: support multi-value inbox.*.*url
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index f294c0d515f74aa4e8eb584d70d73d38fd10e603..a3cdcbc08f6c7f6626b40a2cebbbb73b6be14e0d 100644 (file)
@@ -252,7 +252,7 @@ sub base_url {
        } else {
                # either called from a non-PSGI environment (e.g. NNTP/POP3)
                $self->{-base_url} ||= do {
-                       my $url = $self->{url} or return undef;
+                       my $url = $self->{url}->[0] or return undef;
                        # expand protocol-relative URLs to HTTPS if we're
                        # not inside a web server
                        $url = "https:$url" if $url =~ m!\A//!;