mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-16 16:16:12 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f0cbe1a8f | ||
|
|
e82ef8ac4a |
@@ -58,7 +58,7 @@ Sending a file is typically a two-step procedure. You first discover devices in
|
|||||||
Stop the process once you have found the receiver.
|
Stop the process once you have found the receiver.
|
||||||
```
|
```
|
||||||
$ opendrop find
|
$ opendrop find
|
||||||
Looking for receivers. Press enter to stop ...
|
Looking for receivers. Press Ctrl+C to stop ...
|
||||||
Found index 0 ID eccb2f2dcfe7 name John’s iPhone
|
Found index 0 ID eccb2f2dcfe7 name John’s iPhone
|
||||||
Found index 1 ID e63138ac6ba8 name Jane’s MacBook Pro
|
Found index 1 ID e63138ac6ba8 name Jane’s MacBook Pro
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
__version__ = "0.12.1"
|
__version__ = "0.12.2"
|
||||||
|
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
dyld_path = os.environ.get("DYLD_LIBRARY_PATH", "") # save old path
|
dyld_path = os.environ.get("DYLD_LIBRARY_PATH", "") # save old path
|
||||||
|
|||||||
+3
-2
@@ -113,11 +113,12 @@ class AirDropCli:
|
|||||||
self.server.stop()
|
self.server.stop()
|
||||||
|
|
||||||
def find(self):
|
def find(self):
|
||||||
logger.info("Looking for receivers. Press enter to stop ...")
|
logger.info("Looking for receivers. Press Ctrl+C to stop ...")
|
||||||
self.browser = AirDropBrowser(self.config)
|
self.browser = AirDropBrowser(self.config)
|
||||||
self.browser.start(callback_add=self._found_receiver)
|
self.browser.start(callback_add=self._found_receiver)
|
||||||
try:
|
try:
|
||||||
input()
|
while True:
|
||||||
|
pass
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user