Location based Ngrok Server configuration of DASH

Open Beginner friendly
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Domain
backend, cli

Research direction

The change is in src/dash.py line 58, where the ngrok subprocess call is made. First, read the existing configuration flow to see where user input is collected. Add a step to prompt for a region code (us, eu, ap, au, sa, jp, in) and pass it as the '-region' argument. Test by running the tool and verifying the ngrok command includes the chosen region.

Written by the indexing model from the issue text.

Description

jwoc medium
  • Ngrok provides servers which are located at 7 different location in the world and for faster file transfer we need to select the nearest server and this can be different to a different user.
  • The objective of this issue is to add one more configuration step to DASH which will ask the user to enter the server which is nearest to them ;

code | country
us | United States
eu | Europe
ap  | Asia/Pacific
au  | Australia
sa  | South America
jp  | Japan
in  | India
`

and depending on the selected location we need to update the line number 58 of dash.py

ngrok = subprocess.Popen(['ngrok','http','-region','**Server Code**' ,str(port)], stdout = subprocess.PIP )

  • For more information about ngrok region configuration you can check here
Dominant language
Python
Stars
33
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 0xPrateek/DASH

All issues in 0xPrateek/DASH

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.