Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.0-0.1.0: Enhancement - Allow DNS Address #97

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

lnbc1QWFyb24
Copy link
Member

@lnbc1QWFyb24 lnbc1QWFyb24 commented Jan 25, 2023

  • Modify the client side validation to allow both an IP address and a DNS address in the address connection string. (closes Client application does not validate DNS names in the node URI #89)
  • Add error handling for local storage calls to not fail when access is blocked (like in TOR browser).
  • General linting fixes.
  • Update to latest Lnmessage which also now allows DNS addresses.
  • Fixes bug so that on the connect screen, every new attempt to connect will start with a fresh instance of the CoreLN instance so that it always connects to the updated address.

Copy link
Contributor

@johngribbin johngribbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, how can I test this on staging?

@lnbc1QWFyb24
Copy link
Member Author

looks good, how can I test this on staging?

First we want to test that this does not break anything for existing users. So just general testing will be helpful here. You can then test trying to use a domain (i was just using a random one) instead of an IP and observe if it passes the validation and attempts to connect.

To really verify this works, we could use some help from @farscapian to try it out.

@lnbc1QWFyb24 lnbc1QWFyb24 merged commit 76752f4 into develop Jan 26, 2023
@lnbc1QWFyb24 lnbc1QWFyb24 deleted the enhancement/allow-dns branch January 26, 2023 02:55
@farscapian
Copy link
Contributor

I tried testing this on a new Firefox instance with the following input: '0224818c362a6e6886ed1d233047dd45dd78c329e1eb20af5de9b8cf6d279c2de6@btcpay.farscapian.com:9735'. It does seem to validate on the client side, but I get a red "Connection error". No error output in the vConsole, but in the browser debug environment I see a network request to wss://wsproxy.clams.tech/btcpay.farscapian.com:9735 with no response from wsproxy.clams.tech. Assuming ln-ws-proxy needs DNS hostname support also?

@lnbc1QWFyb24
Copy link
Member Author

Yeah the wsproxy should already be upgraded to handle this, but it must be having some issues. I'll try debugging with those connection details and see what I come up with.

@lnbc1QWFyb24
Copy link
Member Author

@farscapian it looks like the wsproxy deploy failed. Redeployed and it is working now if you would like to try again on the staging app.

@farscapian
Copy link
Contributor

Connection confirmed! Everything seems much snappier now too. I tried this on Firefox on Ubuntu and tried with and without the default port.

Thank you very much for implementing this! For me, this functionality is helpful in two areas: 1) in some cases people will be using DDNS on their external firewall to update the hostname associated with their public IP address. Using a DNS name allows the Clams app to always reach the correct endpoint. 2) In the case where you are on-premise with your lightning node, often you will have a different internal 1918 IP address assigned to your node and your internal DNS server will point to that rather than returning the public DNS records. This allows Clams clients sitting on your local network to make a direct connection to the lightning node. (of course you will need to host your own ln-ws-proxy to avoid the websocket connection wsproxy.clams.tech).

Thanks again!

@lnbc1QWFyb24
Copy link
Member Author

No worries! I am also working on adding direct connections and custom WS proxies at the moment as well, so we should be able to also get that in to the next release.

johngribbin added a commit that referenced this pull request Feb 3, 2023
* 1.3.0-0.1.0: Enhancement - Allow DNS Address (#97)

* Update to latest lnmessage that allows dns

* Allow dns address, storage err handling, lint fix

* Bump ua-parser-js from 1.0.2 to 1.0.33 (#98)

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 1.0.2 to 1.0.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](faisalman/ua-parser-js@1.0.2...1.0.33)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Aaron <abarnard@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 1.3.0-0.2.0: Enhancement - Connection Options (#99)

* Faster initial data fetching

* Start advanced connection options

* Add http dev mode

* Update to latest lnmessage

* Add full direct connection functionality

* Increment version

* Add connection options to settings page

* Formatting

* Start sidebar

* Tweaks

* Tweals

* Add connection status

* Add refresh button

* Shadow on desktop only

* Handle case where connection status undefined

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Aaron <abarnard@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
johngribbin added a commit that referenced this pull request Feb 4, 2023
)

* Add Koinly & Cointracker csv downloads with hardcoded data

* Add quickbooks and harmony CSVs

* Clean up logic

* Fix fee amount bug and clean up logic

* Fix date formatting

* Remove hardcoded json and hook up commando call for income events

* Update styling

* Rename route and update styles

* Move accounting exports to component with call for income events

* Move copy to i18n file

* Update spacing

* Add sidenav compoent & back button to bkpr route

* Updates

* Remove settings icon from top right

* Remove unused import

* Fix bug caused by z-index & tidy up bkpr loading effect

* Remove redundant div

* Add version update

* Update styling of Menu

* Update Refresh component with loading animation

* Update version

* Fix spacing around menu options

* Feature/bookkeeper account UI tweaks (#102)

* 1.3.0-0.1.0: Enhancement - Allow DNS Address (#97)

* Update to latest lnmessage that allows dns

* Allow dns address, storage err handling, lint fix

* Bump ua-parser-js from 1.0.2 to 1.0.33 (#98)

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 1.0.2 to 1.0.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](faisalman/ua-parser-js@1.0.2...1.0.33)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Aaron <abarnard@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 1.3.0-0.2.0: Enhancement - Connection Options (#99)

* Faster initial data fetching

* Start advanced connection options

* Add http dev mode

* Update to latest lnmessage

* Add full direct connection functionality

* Increment version

* Add connection options to settings page

* Formatting

* Start sidebar

* Tweaks

* Tweals

* Add connection status

* Add refresh button

* Shadow on desktop only

* Handle case where connection status undefined

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Aaron <abarnard@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Tweak logic to create csv on click

* Make import of date-fns-tz dynamic

* Remove redundant key

* Refactor/csv formatting (#103)

* Refactor data handling

* 1.3.0-0.3.0: Feature - URL Protocol Handlers (#101)

* Add url protocol handlers

* Add register method

* Fix versioning

---------

Co-authored-by: Aaron <abarnard@protonmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Aaron <abarnard@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@lnbc1QWFyb24 lnbc1QWFyb24 mentioned this pull request Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants