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

correctly remove .onion from instances #43

Closed
wants to merge 1 commit into from

Conversation

duritong
Copy link
Contributor

@duritong duritong commented Nov 4, 2016

strip strips any of the passed characters from the string. So if
you have a hostname containing on or - as in my case - ...no
you will end up with a broken onionservice hostname for onionbalance.

@coveralls
Copy link

coveralls commented Nov 4, 2016

Coverage Status

Coverage remained the same at 35.835% when pulling d31804a on duritong:develop_strip_vs_replace into 71844a0 on DonnchaC:develop.

`strip` strips any of the passed characters from the string. So if
you have a hostname containing `on` or - as in my case - `...no`
you will end up with a broken onionservice hostname for onionbalance.
@duritong duritong force-pushed the develop_strip_vs_replace branch from d31804a to f1a6e42 Compare November 4, 2016 22:28
@coveralls
Copy link

coveralls commented Nov 4, 2016

Coverage Status

Coverage remained the same at 35.835% when pulling f1a6e42 on duritong:develop_strip_vs_replace into 71844a0 on DonnchaC:develop.

DonnchaC pushed a commit that referenced this pull request Dec 13, 2016
`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 pushed a commit that referenced this pull request Dec 13, 2016
`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 closed this in #44 Dec 13, 2016
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