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

feat(rust): rename the port field into address and support change the address and the port #5894

Merged

Conversation

0x61nas
Copy link
Contributor

@0x61nas 0x61nas commented Sep 4, 2023

Sorry for the late PR, I had to take some time to parse the project structure tree.

Current behavior

The Share a service window only allows the user to define the service port and the host address it always defaults to 127.0.0.1

Proposed changes

  • Replace the Port field name to Address
  • Support the formats Host:Port, IP:Port and Port (defaulting to 127.0.0.1)
  • Adapt the app backend to parse the address correctly.

Checks

@0x61nas 0x61nas requested a review from a team as a code owner September 4, 2023 22:03
@0x61nas 0x61nas force-pushed the feat/configurable-address branch 3 times, most recently from f400554 to cd1002b Compare September 5, 2023 15:13
@0x61nas 0x61nas changed the title refactor(app): rename the port field into address and support change the address and the port refactor(rust): rename the port field into address and support change the address and the port Sep 5, 2023
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

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

Hey @0x61nas , thank you so much for creating your first PR at Ockam! It looks pretty nice, just a small change regarding how to parse the service address 👍

Also, make sure to setup your github account so that your commits are signed. You can follow this guide or ask us if you have any question.

@0x61nas 0x61nas force-pushed the feat/configurable-address branch 2 times, most recently from 543c99c to 6bc9cb8 Compare September 6, 2023 12:50
@0x61nas 0x61nas changed the title refactor(rust): rename the port field into address and support change the address and the port feat(rust): rename the port field into address and support change the address and the port Sep 6, 2023
@0x61nas 0x61nas force-pushed the feat/configurable-address branch 3 times, most recently from 9c4a5c1 to bb576d5 Compare September 6, 2023 13:30
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

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

Looks perfect! Just a couple of minor changes and will be ready to get merged 💪

@0x61nas 0x61nas force-pushed the feat/configurable-address branch 6 times, most recently from d4b97e4 to 307f65a Compare September 7, 2023 10:26
… address and the port

The changes include:
* Replace the Port field name to Address
* Support the formats Host:Port, IP:Port and Port (defaulting to 127.0.0.1 aka `localhost`)
* Adapt the app back-end to parse the address correctly.

- Closes: build-trust#5685
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀 Thanks @0x61nas for an awesome first contribution 🥳

@adrianbenavides adrianbenavides added this pull request to the merge queue Sep 8, 2023
Merged via the queue into build-trust:develop with commit b7253f5 Sep 8, 2023
96 checks passed
@0x61nas 0x61nas deleted the feat/configurable-address branch September 8, 2023 08:52
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.

In the Share a service window, the Port should be renamed to Address and support such format
2 participants