fix: remote engine ip address
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
			
		||||
<script lang="ts">
 | 
			
		||||
	export let database: any;
 | 
			
		||||
	export let privatePort: any;
 | 
			
		||||
	export let settings: any;
 | 
			
		||||
 | 
			
		||||
	import { page } from '$app/stores';
 | 
			
		||||
	import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';
 | 
			
		||||
@@ -16,7 +15,7 @@
 | 
			
		||||
	import { post } from '$lib/api';
 | 
			
		||||
	import { toast } from '@zerodevx/svelte-toast';
 | 
			
		||||
	import { t } from '$lib/translations';
 | 
			
		||||
	import { errorNotification, getDomain } from '$lib/common';
 | 
			
		||||
	import { errorNotification } from '$lib/common';
 | 
			
		||||
	import { appSession, status } from '$lib/store';
 | 
			
		||||
 | 
			
		||||
	const { id } = $page.params;
 | 
			
		||||
@@ -51,7 +50,7 @@
 | 
			
		||||
		return `${database.type}://${
 | 
			
		||||
			databaseDbUser ? databaseDbUser + ':' : ''
 | 
			
		||||
		}${databaseDbUserPassword}@${
 | 
			
		||||
			isPublic ? ($appSession.ipv4) : database.id
 | 
			
		||||
			isPublic ? (database.destinationDocker.remoteEngine ? database.destinationDocker.ipAddress : $appSession.ipv4) : database.id
 | 
			
		||||
		}:${isPublic ? database.publicPort : privatePort}/${databaseDefault}`;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,6 @@
 | 
			
		||||
	import Databases from './_Databases/_Databases.svelte';
 | 
			
		||||
	import { status } from '$lib/store';
 | 
			
		||||
	export let database: any;
 | 
			
		||||
	export let settings: any;
 | 
			
		||||
	export let privatePort: any;
 | 
			
		||||
 | 
			
		||||
	const { id } = $page.params;
 | 
			
		||||
@@ -86,4 +85,4 @@
 | 
			
		||||
		</dl>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
<Databases bind:database {privatePort} {settings} />
 | 
			
		||||
<Databases bind:database {privatePort}/>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user