Delete pull proxy by vhost, app, stream
(self, vhost: str, app: str, stream: str)
| 717 | return False |
| 718 | |
| 719 | def delete_pull_proxy(self, vhost: str, app: str, stream: str) -> bool: |
| 720 | """Delete pull proxy by vhost, app, stream""" |
| 721 | try: |
| 722 | cur = self._cursor() |
| 723 | cur.execute('DELETE FROM pull_proxies WHERE vhost = ? AND app = ? AND stream = ?', |
| 724 | (vhost, app, stream)) |
| 725 | self.connection.commit() |
| 726 | return True |
| 727 | except sqlite3.Error as e: |
| 728 | print(f"Failed to delete pull proxy: {e}") |
| 729 | return False |
| 730 | |
| 731 | # ==================== 多地址管理 ==================== |
| 732 |
no test coverage detected