mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-03 03:36:58 +00:00
parent
28716924c9
commit
f994e7bfa8
@ -2008,7 +2008,10 @@ def API_sharePeer_create():
|
||||
return ResponseObject(False, "Please specify configuration and peers")
|
||||
activeLink = AllPeerShareLinks.getLink(Configuration, Peer)
|
||||
if len(activeLink) > 0:
|
||||
return ResponseObject(False, "This peer is already sharing, please stop sharing first.")
|
||||
return ResponseObject(True,
|
||||
"This peer is already sharing. Please view data for shared link.",
|
||||
data=activeLink[0]
|
||||
)
|
||||
status, message = AllPeerShareLinks.addLink(Configuration, Peer, ExpireDate)
|
||||
if not status:
|
||||
return ResponseObject(status, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user