summaryrefslogtreecommitdiffhomepage
path: root/lib/net
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-25 16:54:20 +0100
committerjao <jao@gnu.org>2021-10-25 16:54:20 +0100
commit00afd31d4d2809c807b066653439033766be1615 (patch)
tree04f8141bcc7f985045738c91250a6485939afb57 /lib/net
parentd63fa325fe41fe2c79cc055760c200cf7a812373 (diff)
downloadelibs-00afd31d4d2809c807b066653439033766be1615.tar.gz
elibs-00afd31d4d2809c807b066653439033766be1615.tar.bz2
mullvad fixes
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/jao-mullvad.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/jao-mullvad.el b/lib/net/jao-mullvad.el
index ba552e8..e4b335e 100644
--- a/lib/net/jao-mullvad.el
+++ b/lib/net/jao-mullvad.el
@@ -66,8 +66,8 @@
(message ""))
(jao-mullvad-mode)))
-(defconst jao-mullvad--country-rx "^\\([^ \t\n]+ (...?)\\)$")
-(defconst jao-mullvad--city-rx " \\([^ (]+ (...)\\)")
+(defconst jao-mullvad--country-rx "^\\([^\t\n]+ (...?)\\)$")
+(defconst jao-mullvad--city-rx " \\([^\t(]+ (...)\\)")
(defun jao-mullvad--list ()
"Compute an alist of available relay countries with their cities."
@@ -83,7 +83,7 @@
((looking-at jao-mullvad--city-rx)
(setq country (cons (match-string 1) country))))
(forward-line 1))
- (reverse countries))))
+ (reverse (cons (reverse country) countries)))))
;;;###autoload
(defun jao-mullvad-status ()
@@ -105,7 +105,7 @@
(setq country (match-string 0)))))
(let ((inhibit-read-only t))
(forward-line 1)
- (insert "Connected to " country " " city " - " server "\n")
+ (insert "Connected to " country " " city " - " server "\n")
(goto-char (point-min))))))
;;;###autoload