mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	add dns servers to details tab (#5709)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
		
							parent
							
								
									21bd171167
								
							
						
					
					
						commit
						6cb05ce009
					
				
					 3 changed files with 14 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1921,6 +1921,7 @@ function getSystemInformation(func) {
 | 
			
		|||
            } catch (ex) { }
 | 
			
		||||
        }
 | 
			
		||||
        results.hardware.agentvers = process.versions;
 | 
			
		||||
        results.hardware.network = { dns: require('os').dns() }; 
 | 
			
		||||
        replaceSpacesWithUnderscoresRec(results);
 | 
			
		||||
        var hasher = require('SHA384Stream').create();
 | 
			
		||||
        // results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6015,7 +6015,12 @@
 | 
			
		|||
                            if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    x += '</div>';
 | 
			
		||||
                    x += '</div></td></tr>';
 | 
			
		||||
                }
 | 
			
		||||
                if (hardware.network && hardware.network.dns) {
 | 
			
		||||
                    x += '<tr><td><div class=style10 style=border-radius:5px;padding:8px>';
 | 
			
		||||
                    x += addDetailItem("<b>DNS Servers</b>", hardware.network.dns.join(", "));
 | 
			
		||||
                    x += '</div></td></tr>';
 | 
			
		||||
                }
 | 
			
		||||
                x += '</table>';
 | 
			
		||||
                if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking' }); }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11877,7 +11877,7 @@
 | 
			
		|||
                            if (ipv4layer.v4addr) { x += addDetailItem("IPv4 Layer", format("IP: {0}", EscapeHtml(ipv4layer.v4addr))); }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    x += '</div>';
 | 
			
		||||
                    x += '</div></td></tr>';
 | 
			
		||||
                }
 | 
			
		||||
                x += '</table>';
 | 
			
		||||
                if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
 | 
			
		||||
| 
						 | 
				
			
			@ -11915,7 +11915,12 @@
 | 
			
		|||
                            if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    x += '</div>';
 | 
			
		||||
                    x += '</div></td></tr>';
 | 
			
		||||
                }
 | 
			
		||||
                if (hardware.network && hardware.network.dns) {
 | 
			
		||||
                    x += '<tr><td><div class=style10 style=border-radius:5px;padding:8px>';
 | 
			
		||||
                    x += addDetailItem("<b>DNS Servers</b>", hardware.network.dns.join(", "));
 | 
			
		||||
                    x += '</div></td></tr>';
 | 
			
		||||
                }
 | 
			
		||||
                x += '</table>';
 | 
			
		||||
                if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue