[bisq-network/bisq] Fix tor v3 address validation (#4346)

James Cox notifications at github.com
Tue Jun 30 13:59:57 UTC 2020


The regex validation for addresses was not accepting tor v3 format.  This patch allows tor v3 addresses which are always 56 chars in length (whereas tor v2 addresses are always 16 chars in length).  Tests have been included.


before, does not allow tor v3 address:
![image](https://user-images.githubusercontent.com/47253594/86134355-215ce280-baaf-11ea-8bca-53c0547f76e5.png)

after, allows tor v3 address:
![image](https://user-images.githubusercontent.com/47253594/86134794-ab0cb000-baaf-11ea-8749-7cb803f00d69.png)

You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/4346

-- Commit Summary --

  * Fix tor v3 address validation

-- File Changes --

    M desktop/src/main/java/bisq/desktop/util/GUIUtil.java (5)
    M desktop/src/test/java/bisq/desktop/util/GUIUtilTest.java (3)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/4346.patch
https://github.com/bisq-network/bisq/pull/4346.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4346
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200630/731b9af8/attachment-0001.html>


More information about the bisq-github mailing list