Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Fix major bug in instance address parsing #44

Merged
merged 2 commits into from
Dec 13, 2016
Merged

Conversation

DonnchaC
Copy link
Owner

I introduced a bug in cbda349 which causes instance address parsing to fail if the address ends with any of the letters in ".onion". The correct behavior is to strip the string ".onion" from the end of the address.

Thank you to duritong and Alec Muffett for reporting this.

Resolves #43.

DonnchaC and others added 2 commits December 13, 2016 16:26
`string.strip()` strips any of the passed characters from the string. This commit
fixes a bug where any of the characters in ".onion" would be stripped from
the end of the onion address.

The intention was to remove the string ".onion" if it was included at the end
of the provide instance address. This commit uses `.replace() to remove it.

Resolves #43.
@DonnchaC DonnchaC merged commit 26c78af into develop Dec 13, 2016
@DonnchaC DonnchaC deleted the fix/address-strip-bug branch February 21, 2017 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants