-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
"""Application module.""" | ||
import asyncio | ||
import os | ||
import re | ||
import socket | ||
import subprocess | ||
import threading | ||
import time | ||
import subprocess | ||
import re | ||
import asyncio | ||
|
||
|
||
from datetime import datetime | ||
from typing import List, Optional, Any, Dict, Union | ||
|
@@ -689,8 +688,7 @@ async def read_item( | |
import nest_asyncio | ||
|
||
nest_asyncio.apply() | ||
command = f"ssh -R 80:{self._host}:{self._port} [email protected]" | ||
|
||
command = f"ssh -o StrictHostKeyChecking=no -R 80:{self._host}:{self._port} [email protected]" | ||
process = subprocess.Popen( | ||
command, | ||
stdout=subprocess.PIPE, | ||
|
@@ -701,6 +699,7 @@ async def read_item( | |
# Get the public URL without waiting for the process to complete | ||
while True: | ||
line = process.stdout.readline() | ||
|
||
if not line: | ||
break | ||
|
||
|