Skip to content

Support hostnames when specifying hosts #24

@colthreepv

Description

@colthreepv

I would like to leverage hostname resolution to not have to write IP by hand in the command invocation.

At the moment doing this,

any service on port 3333:

docker run --rm -p 3333:8000 jwilder/whoami
Listening on :8000

server:

shapeshifter-dispatcher --server --state state_srv -transparent --transports obfs4 --orport 127.0.0.1:3333 --bindaddr obfs4-127.0.0.1:2222 -logLevel DEBUG -enableLogging

client:

shapeshifter-dispatcher --client --state state_cli -transparent -target 127.0.0.1:2222 -transports obfs4 -proxylistenaddr localhost:9443 -logLevel DEBUG -enableLogging -optionsFile obfs4.json

Testing tunnel:

curl localhost:9443
I'm da23b149f740

So it works, but replacing 127.0.0.1 with localhost breaks tunnelling in many parts.

Is there a single point where this could be added? I could provide a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions