Location based Ngrok Server configuration of DASH
- Lingua principale
- Python
- Stelle
- 33
- Fork
- 15
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
- 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](https://github.com/0xPrateek/DASH/blob/master/src/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](https://ngrok.com/docs#config-options)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- flask, python
- Ambito
- backend, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 75/100